Skip to content

feat(tui): left-align start page, enrich tool result & sub-agent rendering#3

Merged
jkyberneees merged 1 commit into
mainfrom
claude/bodek-sessions-websocket-ports-fzraok
Jun 19, 2026
Merged

feat(tui): left-align start page, enrich tool result & sub-agent rendering#3
jkyberneees merged 1 commit into
mainfrom
claude/bodek-sessions-websocket-ports-fzraok

Conversation

@jkyberneees

Copy link
Copy Markdown
Contributor

Start page: the welcome key column is now flush-left (padRight) instead of
right-aligned, so commands and their descriptions share a clean left edge.

Tool results: tool_result now retains a sanitized, line-capped excerpt
(resultPreview) instead of a single collapsed line. renderSteps draws it as a
tree (⎿) — multi-line, blank-stripped, capped at 5 lines with a "+N more
lines" footer — and tints the status glyph ✗ when the output reads as a
failure (looksLikeError). argPreview now also surfaces prompt/task/description
fields so delegations show their task.

Sub-agents: a delegating tool_call is flagged via isSubagent and labelled
"sub-agent"; subsequent subagent_log events nest beneath it as its own branch
of the step tree (attachSubLog), falling back to a notice when there is no
wrapping step.

Tests cover padRight, isSubagent, looksLikeError, resultExcerpt,
resultPreview, sub-agent log nesting, and the enriched step rendering;
internal/tui statement coverage holds at 96%+.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01UHpZVF8Lm1cyZXM6L4a6vn

…ering

Start page: the welcome key column is now flush-left (padRight) instead of
right-aligned, so commands and their descriptions share a clean left edge.

Tool results: tool_result now retains a sanitized, line-capped excerpt
(resultPreview) instead of a single collapsed line. renderSteps draws it as a
tree (⎿) — multi-line, blank-stripped, capped at 5 lines with a "+N more
lines" footer — and tints the status glyph ✗ when the output reads as a
failure (looksLikeError). argPreview now also surfaces prompt/task/description
fields so delegations show their task.

Sub-agents: a delegating tool_call is flagged via isSubagent and labelled
"sub-agent"; subsequent subagent_log events nest beneath it as its own branch
of the step tree (attachSubLog), falling back to a notice when there is no
wrapping step.

Tests cover padRight, isSubagent, looksLikeError, resultExcerpt,
resultPreview, sub-agent log nesting, and the enriched step rendering;
internal/tui statement coverage holds at 96%+.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UHpZVF8Lm1cyZXM6L4a6vn
@jkyberneees jkyberneees merged commit 8e63cae into main Jun 19, 2026
5 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.

2 participants