[Feature] Minimal editor-border metadata for project, branch, session, and status
Summary
Please consider a minimal, always-visible editor-border layout that exposes only the information needed to avoid acting in the wrong project, branch, or session.
Proposed layout:
─ project · branch ───────────────────────────── ● session name ─
> prompt
Model · thinking ctx : 34%
Motivation
When several Prime Agent sessions and worktrees are open, the most costly UI mistake is losing track of:
- which project/worktree the prompt will act on;
- which Git branch is active;
- which named session is attached;
- whether that session is idle, working, retrying, or disconnected.
The underlying data already exists in the interactive mode (getCurrentCwd(), FooterDataProvider.getGitBranch(), getCurrentSessionName(), and connection state), but session identity is currently mainly exposed through the terminal title or /session rather than at the point of input.
Suggested behavior
- Top-left fieldset label:
basename(cwd) · branch. - Top-right fieldset label: one semantic status glyph plus the session name.
- Suggested glyphs, using both shape and color for accessibility:
●idle/ready (success)◉streaming, compacting, or running bash (accent)!retry/error (error)○disconnected/uninitialized (dim)
- Update immediately after
/name, session-info events, cwd changes, and branch changes. - Truncate labels safely at narrow widths, prioritizing the session label.
- Do not duplicate the session name in the footer.
- Allow one internal blank row above and below prompt content so labels read as fieldset legends rather than text stuck inside the editor.
- Preserve current model/thinking and context information in the footer.
Prototype validation
I prototyped this locally against Prime Agent v0.8.0 on Windows. A fresh TUI and /debug render confirmed:
- project and branch updates;
- live
/nameupdates; - idle and running status changes;
- ANSI-safe status coloring;
- correct 120-column alignment and label truncation;
- editor background continuity across styled/reset segments.
This request is for a supported upstream implementation rather than relying on an update-sensitive installed dist patch.
Environment
- Prime Agent v0.8.0
- Windows 11
- Tested in both normal and fullscreen-style TUI rendering
Hi @Noobear, thanks for your interest!
This project requires that issue reporters are vouched, and you are not in the list of vouched users.
This issue will be closed automatically. See https://github.com/PrimeIntellect-ai/prime-agent/blob/main/CONTRIBUTING.md for more details.