Skip to content

feat(tui): name the viewed child in the transcript frame title - #696

Merged
mohitranka merged 1 commit into
mainfrom
feat/child-view-breadcrumb
Sep 15, 2026
Merged

mohitranka merged 1 commit into
mainfrom
feat/child-view-breadcrumb

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

P5's last piece: with a child session on screen, nothing above the transcript said whose session it was.

The gap

The header still describes the parent session (workspace, branch) — the child runs in its own worktree, so those do not match while the view is open — and only the composer hint carried the orientation. Now the frame title reads Chat ‹ explore while a child view is open, and the parent's own Chat comes back with it on ←.

The ‹ reads as "drilled into" rather than a path: there is no parent-task lineage to draw (BackgroundTaskHandle.parent_task_id is the foreground TaskId), so inventing a breadcrumb trail would be a lie. One title, one name.

Design doc

The child view is now FORGE-DESIGN.md §9.13 (out-of-band notification moves to §9.14, no other §9.13 references exist in code or docs), covering:

  • the title rule and the read-only composer contract,
  • the live-refresh contract (silent, swap-only-on-change, never touches scroll),
  • the parent-header mismatch, stated plainly rather than hidden,
  • the no-activity-rows trade (TurnEvents are not replayed) and the shell-task refusal.

Verification

  • cargo fmt --all -- --check clean; cargo clippy --package forge-tui --all-targets --locked -- -D warnings clean.
  • New render test: no breadcrumb for the parent, names the child while viewing, restores on ←.
  • The four local failures in the wider run are pre-existing and unrelated: the three known sandbox denials plus completed_turn_renders_unfinished_checks…, which fails identically on a stashed (unmodified) tree.

P5's last behavior gap: with a child session on screen, nothing above the
transcript said whose session it was. The header still describes the parent
(workspace, branch) — the child runs in its own worktree, so those do not
match while the view is open — and the composer hint alone carried the
orientation.

The frame title now reads `Chat ‹ explore` while a child view is open, and the
parent's own `Chat` comes back with it on `←`. The `‹` reads as "drilled into"
rather than a path: there is no parent-task lineage to draw
(`BackgroundTaskHandle.parent_task_id` is the foreground `TaskId`), so
inventing a breadcrumb trail would be a lie. One title, one name.

Also documents the child view as `FORGE-DESIGN.md` §9.13 (out-of-band
notification moves to §9.14), covering the title rule, the live-refresh
contract, the parent-header mismatch, and the no-activity-rows trade.

Tests: the rendered frame carries no breadcrumb for the parent, names the
child while viewing, and restores the parent's title on `←`.
@mohitranka
mohitranka merged commit ec96b75 into main Sep 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant