Skip to content

feat(web): a milestones view you can zoom out and in, with agent groups - #17

Merged
OmarAlex24 merged 4 commits into
feat/sandbox-environmentsfrom
feat/milestones-trace
Nov 11, 2026
Merged

OmarAlex24 merged 4 commits into
feat/sandbox-environmentsfrom
feat/milestones-trace

Conversation

@OmarAlex24

@OmarAlex24 OmarAlex24 commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Stack. This is the bottom of a stack. #23 replaces this view's layout with a map shaped like a git graph and removes threadMilestoneTrace. The groups on delegate_task and the Plan section stay. Review this layer for the groups; the view itself is reviewed in #23.

Problem

The Milestones view read like the chat with different components. You couldn't see at a glance what had been done, where the run was, or which agents worked in parallel. A coordinator also had no way to say "these three agents are the UI, these three the backend", so the view couldn't show work streams.

Solution

Groups for delegated tasks.

  • delegate_task takes an optional group ("UI", "Backend"), up to 40 characters.
  • It is stored on the subagent record, for local and linked-environment delegations, and follow-up tasks keep it.
  • The milestone guidance gains one line asking coordinators to set it for parallel streams.
  • One eval case covers it.
  • Built-in Claude and Codex subagents can't carry the label, so they stay ungrouped.

A milestones view with zoom.

  • Zoom out puts the whole thread on one time axis:
    • a coordinator row with its runs;
    • one row per milestone, or per turn when there is no plan;
    • bars for done, working, planned (by average time) and dropped milestones;
    • pins for board posts and a "now" line.
  • Live milestone groups. The live milestone opens one row per group, with a line per agent. Overlapping lines ran in parallel.
  • Idle spans over 10 minutes collapse into a "1h 20m idle" break. When work resumes right after one, its label moves left so it doesn't cover the now marker.
  • Asks on top. A secret, link or approval request sits at the top and is answered there. An agent that needs you gets an Answer row.
  • Zoom in rescales the axis to one milestone and shows:
    • the coordinator;
    • a header per group, with agent rows that open their threads;
    • the board.
    • Esc goes back, ←/→ steps milestones, and the keys are ignored in fields and the composer.
    • Zooming in takes focus, so the keys work after a click in the Plan panel. Returning to the window keeps that focus instead of moving it to the composer.
  • Plan section at the top of the thread details card:
    • progress, the milestone list, per-group progress for the live milestone, and the coordinator's pending ask.
    • Clicking a milestone opens it zoomed in.
    • It can be hidden like the other sections.
  • Chart model. The chart is a pure model in client-runtime (threadMilestoneTrace.ts), and the web components render it.
  • Clock. The clock moves only the "now" line through the DOM. The chart re-renders when now passes its time window.

Removed with the old layout:

  • the strip and folded summaries;
  • agent cards;
  • jumping to Chat from a milestone title;
  • the "plan changed N times" count.

Earlier plans become ordinary rows. A changed milestone shows its revision when zoomed in.

Known gaps

  • Agent waiting on a secret. Fixed in fix: a delegated agent's secret request reaches the coordinator's thread #22: a delegated agent's secret request now reaches the coordinator's thread and can be answered there.
  • Local tests outside this change. Locally, check:changed failed tests in two files this PR doesn't touch: Sqlite.test.ts (checkpoint worker) and ClaudeSkills.test.ts. They haven't been run on the base branch, so CI decides.

Screenshots

Captures to attach: zoom out, zoom in and the waiting-on-a-secret state at 820 and 560 px, in light and dark; the Plan section; and the dev app with a real Haiku run that used groups.

Test plan

  • threadMilestoneTrace table:
    • idle-gap collapse and labels
    • a milestone spanning a gap
    • time-window headroom (live, short, clock behind, stopped a day ago)
    • zoomed-in axis
    • planned estimates
    • named, ungrouped and mixed groups
    • first failed agent and agents needing you
    • turn rows
    • earlier plans with dropped milestones
  • threadMilestoneGraph tests updated for earlier plans and late agents
  • delegate_task with group: the stored subagent and its two follow-up tasks carry it (integration test fails without the change)
  • Linked-environment delegation keeps group (fails without the change)
  • Agent context budget test updated: +70 bytes in instructions, +75 in the MCP tool list
  • Eval case milestone-parallel-streams-grouped builds in a dry run
  • Real Haiku coordinator in the dev app: four delegated tasks in "UI" and "Backend" landed with their group in the database. The live milestone showed both groups in parallel, and zoom in showed 2/2 per group. Esc went back, and the Plan panel opened the milestone from Chat.
  • Real Haiku request_secret in the dev app: the card sat on top of zoom out and the panel said "Asks you for Token de prueba". Typing kept the value masked. Save securely cleared the card and Needs you.
  • Window return keeps focus on a zoomed-in milestone (a case in ChatView.logic.browser.test.ts that fails without the change)
  • Dev app, keyboard only:
    • A click on a Plan panel milestone opened it zoomed in, with focus on the view.
    • → and ← stepped milestones, and Esc zoomed out.
    • The turns layout rendered for a thread with no plan.
  • Dev app with a real Haiku run that came back after 15 idle minutes, captured before and after the fix: the "15m idle" label sits left of the break, clear of the now marker. Ten planned milestones rendered.
  • vp run check:changed --concurrency 1 before the rebase onto the current base: format, lint, knip, typecheck (42 packages) and React Compiler all pass

Built with Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XXL labels Nov 11, 2026
@OmarAlex24
OmarAlex24 force-pushed the feat/milestones-trace branch from 7cfefd6 to 49b971b Compare November 11, 2026 19:09
@OmarAlex24
OmarAlex24 added this pull request to stack #24 November 11, 2026 19:11
@OmarAlex24 OmarAlex24 added the agent-context-increase Accepts a deliberate increase in the agent context budget label Nov 11, 2026
@OmarAlex24
OmarAlex24 force-pushed the feat/milestones-trace branch from 49b971b to 77c2713 Compare November 11, 2026 19:47
OmarAlex24 and others added 4 commits November 11, 2026 14:46
A coordinator can now pass `group` ("UI", "Backend") to delegate_task. The
label is stored on the subagent record, local or linked, so clients can show
work streams running in parallel. Agent instructions mention it in one line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…m into

Milestones read like the chat with other components. The view is now one time
axis: zoomed out it shows the coordinator, every milestone and its agents, with
groups running in parallel and pending asks on top; zoomed in it rescales to one
milestone with its agents per group and its board. The thread details panel
gets a Plan section that opens a milestone zoomed in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Opening a milestone from the Plan panel left focus outside the view, and returning to the window moved it to the composer. The zoomed-in panel now takes focus, and window return leaves it there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When work resumed right after a long break, the idle label sat on top of the now pill. The label now moves left of the break, and tick labels hide while the now pill passes them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@OmarAlex24
OmarAlex24 force-pushed the feat/milestones-trace branch from 77c2713 to b8a196c Compare November 11, 2026 20:47
@OmarAlex24
OmarAlex24 merged commit 6769aaa into feat/sandbox-environments Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-context-increase Accepts a deliberate increase in the agent context budget size:XXL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant