mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-18 14:02:51 +00:00
feat(coding-agent): show session name in terminal title and footer (#876)
* ⏺ feat(tui): show session name in terminal title and footer - Add updateTerminalTitle() method that sets terminal title to "π - session-name - dirname" (or "π - dirname" if no name) - Update title when session name changes via /name or extension API - Display session name in footer after git branch with bullet separator * chore: update CHANGELOG
This commit is contained in:
parent
698aea34bd
commit
2354bc571e
3 changed files with 23 additions and 2 deletions
|
|
@ -109,6 +109,12 @@ export class FooterComponent implements Component {
|
|||
pwd = `${pwd} (${branch})`;
|
||||
}
|
||||
|
||||
// Add session name if set
|
||||
const sessionName = this.session.sessionManager.getSessionName();
|
||||
if (sessionName) {
|
||||
pwd = `${pwd} • ${sessionName}`;
|
||||
}
|
||||
|
||||
// Truncate path if too long to fit width
|
||||
if (pwd.length > width) {
|
||||
const half = Math.floor(width / 2) - 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue