Skip to content

feat(steps): polish UI and add sub-agent + terminal-jump support#75

Merged
johannesjo merged 2 commits intomainfrom
claude/improve-steps-feature-0poyM
Apr 16, 2026
Merged

feat(steps): polish UI and add sub-agent + terminal-jump support#75
johannesjo merged 2 commits intomainfrom
claude/improve-steps-feature-0poyM

Conversation

@johannesjo
Copy link
Copy Markdown
Owner

UI polish:

  • Replace → \...`formatting aroundnext` with a clean chevron + italic
  • Add status-color spine on left edge of every step card
  • Remove fixed-length truncation; let summary/next/detail wrap naturally
    and rely on CSS ellipsis for the collapsed history rows
  • Insert a subtle divider between adjacent history entries when status
    changes phase (e.g. investigating → implementing)
  • Hover reveals copy buttons on summary and detail

Sub-agent tree (minimal):

  • New optional agent_id field on StepEntry for entries written on
    behalf of delegated work
  • Steps panel indents and adds a dashed agent badge for entries with an
    agent_id; instruction prompt teaches the agent to populate it

Jump to terminal moment:

  • TerminalView exposes mark/jump bookmarks backed by xterm IMarker
  • TaskAITerminal registers a marker for each new step as it arrives
  • Steps panel shows a hover affordance on each step that scrolls the AI
    terminal back to the moment the step was recorded

claude added 2 commits April 16, 2026 23:25
UI polish:
- Replace `→ \`...\`` formatting around `next` with a clean chevron + italic
- Add status-color spine on left edge of every step card
- Remove fixed-length truncation; let summary/next/detail wrap naturally
  and rely on CSS ellipsis for the collapsed history rows
- Insert a subtle divider between adjacent history entries when status
  changes phase (e.g. investigating → implementing)
- Hover reveals copy buttons on summary and detail

Sub-agent tree (minimal):
- New optional `agent_id` field on StepEntry for entries written on
  behalf of delegated work
- Steps panel indents and adds a dashed agent badge for entries with an
  agent_id; instruction prompt teaches the agent to populate it

Jump to terminal moment:
- TerminalView exposes mark/jump bookmarks backed by xterm IMarker
- TaskAITerminal registers a marker for each new step as it arrives
- Steps panel shows a hover affordance on each step that scrolls the AI
  terminal back to the moment the step was recorded
- CopyButton: clear pending reset timeout on unmount so the callback
  doesn't fire into a disposed component
- AgentBadge: cap max-width and ellipsize so a long agent_id can't push
  copy/jump controls off the row
- Lifecycle: TerminalView signals onStepNavReady(undefined) on cleanup;
  TaskAITerminal resets stepNav and lastMarkedLen so the new TerminalView
  (after agent restart) re-backfills markers for every existing step
- Drop the early-return that advanced lastMarkedLen while no terminal was
  mounted — we now wait for the API before incrementing the watermark
- Extract JumpButton component; both call sites now share it
- Introduce SUB_AGENT_INDENT_PX constant so collapsed/expanded/latest
  views agree on how far to indent sub-agent rows
@johannesjo johannesjo merged commit a0f5280 into main Apr 16, 2026
2 checks passed
@johannesjo johannesjo deleted the claude/improve-steps-feature-0poyM branch April 16, 2026 23:44
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