Skip to content

Agent: consolidate turn progress and change summaries - #1692

Merged
AnthonyRonning merged 3 commits into
masterfrom
ux/turn-consolidated-review-fixes
Nov 26, 2026
Merged

AnthonyRonning merged 3 commits into
masterfrom
ux/turn-consolidated-review-fixes

Conversation

@AnthonyRonning

@AnthonyRonning AnthonyRonning commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Consolidates Matt’s four turn UI PRs as one change targeting master:

Supersedes #1587, #1588, #1589, and #1590. Rebased onto master (7df5f7a1) as three commits:

  • 276e6919 — Matt's turn UI from the four PRs, authored by him: the content of integration merge 2fb6ede1, whose ancestors include their reviewed heads (fd73a65f, 3572bf93, 20d1fb1b, b0ef099e).
  • 421aad67 — fix: keep turn progress and change summaries trustworthy (was 1a662a9a).
  • 3555168b — fix: name the call a permission request is about (was 7cebf7e4).

#1690 landed on master after review and replaced pages.live_has_more with snapshot_partial plus deferred-live tracking. The turn checks now read has_live_gap(), which covers both, and the turn's timer still stops when a live row is deferred.

The fix preserves permission answers until host acceptance, binds pending answers to matching calls, keeps timer/step state consistent across expansion and history loading, avoids fabricated change summaries from incomplete history, and aligns file accounting with the host’s accepted structured edit shapes.

Changes are confined to Agent chat UI, its bundled icon and translations, and UI documentation, plus one host change in the last commit. Local and remote chat use the shared timeline/run-event model.

The last commit replaces the UI's guess at which step a permission request is about (tool name plus a copy of the host's command clipping) with the model's call id. AgentPermissionPrompt and tool AgentTimelineItems gain an optional callId; released peers leave it out or ignore it, so it needs no capability or protocol version. A host without it marks no step. The UI now reads answers with the host's permission_answer_allows instead of comparing with a hard-coded "Allow once". Tool rows changed, so TIMELINE_FORMAT goes from 4 to 5 and stored rows are re-projected in the background, as for the Nov 4 label change.

Local validation

On the rebased head 3555168b (tree ec86a83d, tested before the rebase as a merge with master): full component just ci passed (app 1,568, host 933, headless 410). The two lower commits type-check on their own; their pre-commit hooks were skipped with MAPLE_HOOK_SKIP=1 because the final tree was tested whole.

The following were run against the earlier revision, 1a662a9a559297c7d334348c1a2823d1d5e718e8:

  • Full component just ci: app 1,551 passed; host 931 passed; headless 409 passed.
  • Focused chat regressions: 482 passed, with red-before-fix evidence for the final guards.
  • Repository-selected lanes: agent-lint, agent-test, agent-macos, and repo passed on the available macOS host.
  • Signed local debug bundle metadata and native code-mode preparation checked; this was not a production signing or release.
  • Authenticated native MDE smoke with the local Pro fixture: folded work summary, expanded steps, scoped structured edit, and readback verified.
  • Native Read only permission request approved once; the actual command executed once. ACP loopback smoke completed with three real tool calls and only the expected test-owned file changed.
  • Codex and Claude independently re-reviewed the final revision with no blocking source findings.

The branch sits on current master (7df5f7a1).

GitHub CI run 45741819903 finished successfully: required ci-ok, the Agent lanes including Windows Clippy, and all requested Agent and Research packaging checks passed. ci:package was used because this adds a bundled icon; the label was removed after successful unsigned packaging validation so subsequent pushes do not repeat those expensive jobs.

Validation boundaries

  • No real paired-controller/paired-host remote session was exercised; local runtime testing and shared local/remote source review do not replace that test.
  • Permission-rejection, competing-resolution, paging, and wait-state regressions have focused test coverage, but a remote permission-failure/reconnect fault test remains outstanding.
  • The call-id binding is covered by host and UI tests but has not been exercised in the running app or across paired computers.
  • Existing product limits remain: change cards do not account for shell-only file creation or turns without a final reply, and historical elapsed time and permission outcomes remain view-local.

@AnthonyRonning AnthonyRonning added ci:package Build unsigned packages on this PR and removed ci:package Build unsigned packages on this PR labels Nov 26, 2026
matthewrball and others added 3 commits November 25, 2026 20:52
Matt's turn UI from #1587, #1588, #1589 and #1590, as integrated in
2fb6ede and replayed onto master:

- fold a turn's steps under a line that times the work (#1587)
- draw a turn's steps as a thread (#1588)
- show when a step waits for permission and what the user said (#1589)
- list the files a turn changed under its reply (#1590)

On master, #1690 replaced `pages.live_has_more` with `has_live_gap()`.

Co-Authored-By: Claude <[email protected]>
Retain unanswered permission input until the host accepts it, avoid inventing timing or run completion across paging boundaries, and suppress incomplete change summaries. Normalize all edit input forms accepted by the host and rebuild turn classification after row expansion. (reviewed in focused ui::chat tests; no host or wire changes.)

On master, #1690 split `pages.live_has_more` into `snapshot_partial` and
deferred-live tracking; the turn checks read `has_live_gap()`.
A permission card was matched to its step by tool name and a copy of the
host's command clipping, and the UI decided "allowed" by comparing the
answer with a hard-coded "Allow once". Both could drift from the host.

The request and tool rows now carry the model's call id as an optional
field. The UI marks the newest running row with that id, so two calls
with the same command, or ids a provider reuses across replies, are told
apart. A host without the field marks no step. The UI reads answers with
the host's own `permission_answer_allows`. Large live rows cut down to
fit keep the id.

Tool rows changed, so TIMELINE_FORMAT goes to 5 and stored rows are
re-projected, as for the label change.

Co-Authored-By: Claude <[email protected]>
@AnthonyRonning
AnthonyRonning force-pushed the ux/turn-consolidated-review-fixes branch from 7cebf7e to 3555168 Compare November 26, 2026 04:53
@AnthonyRonning
AnthonyRonning merged commit 901f240 into master Nov 26, 2026
24 checks passed
@AnthonyRonning
AnthonyRonning deleted the ux/turn-consolidated-review-fixes branch November 26, 2026 05:39
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