hermes-agent/ui-tui/src/domain
Brooklyn Nicholson 66a7825ebb feat: unify active-project identity in chat status (supersedes #64721)
Surface the session's first-class Project in both chat surfaces: the
Desktop status bar (project name as the workspace label, full cwd in the
tooltip) and the TUI status label + /status output.

One source of truth. The per-profile projects.db is the authority, read
in tui_gateway via _project_info_for_cwd (backed by
projects_db.project_for_path) and threaded through every session.info
emission path the TUI consumes. The Desktop already caches that truth in
$projectTree, so it DERIVES the label from it (projectNameForCwd) instead
of carrying a second per-session $currentProject atom fed from
session.info.

That drops the parallel state #64721 introduced and the entire
reset/reconciliation surface it required (resume, agentless cwd.set,
gateway-switch, fresh-draft): the label is purely derived, so it stays
correct whenever the cwd or the project tree changes. Only explicit,
named projects resolve on both surfaces, so an auto-discovered repo root
keeps the cwd-leaf label everywhere.

Excludes the unrelated markdown shell-fence change bundled in #64721.
2026-07-18 23:08:13 -04:00
..
blockLayout.ts style(desktop,tui): fix all lint/type/formatting issues 2026-06-26 01:04:33 -05:00
details.ts fix(tui): apply details mode live 2026-04-26 13:34:33 -05:00
messages.ts fix(tui): improve macOS paste and shortcut parity 2026-04-21 08:00:00 -07:00
paths.ts feat: unify active-project identity in chat status (supersedes #64721) 2026-07-18 23:08:13 -04:00
providers.ts chore(tui): /clean pass — inline one-off locals, tighten ConfirmPrompt 2026-04-19 07:55:38 -05:00
roles.ts fix(tui): restore macOS copy behavior and theme polish (#17131) 2026-04-28 18:47:14 -05:00
slash.ts fix(tui): preserve picker session scope across all paths 2026-07-11 08:39:17 -07:00
usage.ts refactor(tui): store-driven turn state + slash registry + module split 2026-04-16 12:34:45 -05:00
viewport.ts fix(tui): stabilize sticky prompt tracking 2026-04-28 22:10:40 -05:00