Skip to content

feat(ui): quieter tool lines and relative paths in subagent transcripts - #54

Merged
tt-a1i merged 1 commit into
mainfrom
feat/transcript-display-polish
Aug 22, 2026
Merged

feat(ui): quieter tool lines and relative paths in subagent transcripts#54
tt-a1i merged 1 commit into
mainfrom
feat/transcript-display-polish

Conversation

@tt-a1i

@tt-a1i tt-a1i commented Aug 22, 2026

Copy link
Copy Markdown
Collaborator

What

Polish for the takeover view's transcript rendering (the per-tool output display inside a subagent):

  • Single glyph per tool line. Tool calls rendered as ✓ → read … — a status glyph stacked on an arrow marker. The arrow carried no information, so it is gone: ✓ read docs/x.md, ⠸ rg foo, ✗ bash …. Bash keeps its $ prompt form.
  • cwd-relative argument summaries. read/write/edit/rg/fd previews showed absolute paths (/Users/…/my-pi-setup/docs/design/README.md). Paths inside the child's own checkout now render relative (docs/design/README.md); paths outside stay absolute, and a shared-prefix non-boundary (/repo-other) is not mistaken for the cwd.
  • cwd-relative output previews. fd/rg echo the absolute search path back in their output, so result lines get the same treatment.

Before / after (from a real explorer run):

✓ → fd                                          ✓ fd *.mjs · scripts
    /Users/…/scripts/benchmark-arm-selection.mjs      scripts/benchmark-arm-selection.mjs

Verification

  • bun run check clean; bun run test: 754 node:test + 29 vitest passing
  • New tests: cwd relativization in summarizeToolArgs (boundary cases included) and an end-to-end transcript line assertion
  • Rendered with real ANSI themes to verify layout

- Drop the redundant → prefix from tool call lines: the phase glyph
  (spinner / ✓ / ✗ / ·) already leads the line, so a second marker was
  noise. Bash keeps its $ prompt form.
- Relativize paths inside the child's own checkout, both in tool
  argument summaries (read/write/edit/rg/fd) and in output previews,
  which echo the absolute search path back. /Users/…/docs/x.md now
  reads as docs/x.md; paths outside the checkout stay absolute.
@tt-a1i
tt-a1i merged commit 535c575 into main Aug 22, 2026
4 checks passed
@tt-a1i
tt-a1i deleted the feat/transcript-display-polish branch August 22, 2026 10:36
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