Repository navigation
fix(chat): show live progress and interactive agent questions - #1757
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesAdds persistent native chat progress, streamed tool output, run token counts, and acknowledged interactive question controls. Example: An assistant says “I will inspect the project” and then runs a tool for 65 seconds.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 3 items remain Keep this maintainer-authored PR open: it addresses functionality still missing on main, but the new token counter bypasses an existing display preference. Priority: P2 Before merge
Findings
Provenance
Tests
Agent review detailsHow this fits togetherThe authenticated Gateway client receives chat and question events, focused state owners reconstruct and reconcile them, and Reactor renders progress and submits structured answers through the existing connection. flowchart TD
Gateway[Authenticated Gateway] --> Client[Gateway client]
Client --> Projection[Chat stream projection]
Projection --> Conversation[Conversation state and reducer]
Conversation --> Timeline[Reactor timeline]
Client --> Questions[Question coordinator]
Questions --> Controls[Native question controls]
Controls --> Client
Technical reviewBest possible solution: Keep the focused progress and question owners while making the new token display honor the existing usage preference. Do we have a high-confidence way to reproduce the issue? Source shows main suppressing activity after an assistant preamble and the PR displaying token counts regardless of the usage setting; neither scenario was executed during this read-only review. Is this the best way to solve the issue? The focused protocol, state, and presentation owners fit the existing architecture, but the progress projection must preserve the established display preference. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d0c8b32086ed. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 16, 2026, 5:02 PM ET / 21:02 UTC. |
Restore native Reactor streaming feedback, timed claw activity, run-specific usage and acknowledged question controls with isolated recovery and theme-safe presentation. Document upstream parity and remaining gaps. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 53299bfd-3680-45d5-ac14-abc5da242c3b
Cover choice, text, multi-select, cancellation and chat deltas through the production provider. Exercise the native question controls and preserve the composer across the rebased welcome layout. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 53299bfd-3680-45d5-ac14-abc5da242c3b
3a23b56 to
6f5dd86
Compare
Preserve native Windows styling and composer state, animate the working claw, and dismiss completed activity and acknowledged question rows without losing pending-input or terminal-failure feedback. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 53299bfd-3680-45d5-ac14-abc5da242c3b
Preserve interactive questions and progress alongside main's Workspace, background-final and file-download changes. Co-authored-by: Copilot App <[email protected]>
Preserve native multiline and form answers, reconcile structured question errors, request bounded question scopes, retain legacy streaming, cancel hidden voice capture, and localize progress feedback. Co-authored-by: Copilot App <[email protected]>
Update the production-root fixture for the composer factory dependencies introduced on main. Keep the existing question and draft retention assertions unchanged. Co-authored-by: Copilot App <[email protected]>
Inspect realized ItemsView rows using the existing timeline filter. WinUI retains removed containers with item index -1; those are not active progress rows. Keep dismissal and late-usage assertions, including negative-control coverage of a genuinely active stale row. Co-authored-by: Copilot App <[email protected]>
…aw#1757) * fix(chat): show live progress and interactive agent questions Restore native Reactor streaming feedback, timed claw activity, run-specific usage and acknowledged question controls with isolated recovery and theme-safe presentation. Document upstream parity and remaining gaps. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 53299bfd-3680-45d5-ac14-abc5da242c3b * test(chat): verify questions with interactive Gateway fixture Cover choice, text, multi-select, cancellation and chat deltas through the production provider. Exercise the native question controls and preserve the composer across the rebased welcome layout. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 53299bfd-3680-45d5-ac14-abc5da242c3b * fix(chat): polish native progress and dismiss completed activity Preserve native Windows styling and composer state, animate the working claw, and dismiss completed activity and acknowledged question rows without losing pending-input or terminal-failure feedback. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 53299bfd-3680-45d5-ac14-abc5da242c3b * fix(chat): harden question answers and composer lifecycle Preserve native multiline and form answers, reconcile structured question errors, request bounded question scopes, retain legacy streaming, cancel hidden voice capture, and localize progress feedback. Co-authored-by: Copilot App <[email protected]> * fix(test): supply isolated settings to question UI proof Update the production-root fixture for the composer factory dependencies introduced on main. Keep the existing question and draft retention assertions unchanged. Co-authored-by: Copilot App <[email protected]> * fix(test): exclude recycled rows from progress dismissal proof Inspect realized ItemsView rows using the existing timeline filter. WinUI retains removed containers with item index -1; those are not active progress rows. Keep dismissal and late-usage assertions, including negative-control coverage of a genuinely active stale row. Co-authored-by: Copilot App <[email protected]> --------- Co-authored-by: Copilot App <[email protected]> Co-authored-by: [email protected] <[email protected]> Copilot-Session: 53299bfd-3680-45d5-ac14-abc5da242c3b
What Problem This Solves
Fixes: native chat appears frozen during streaming, tool work or interactive questions, and leaves stale status rows after completion.
User Impact
User impact: users see the animated working claw, elapsed time, partial output, run-specific token counts and native question controls while work is active. The composer and unsent draft survive question interactions. Confirmed answers dismiss the question dock without a "Question answered" row; completed runs dismiss the claw/timer while unresolved questions or approvals retain their waiting indicator.
The native WinUI backplate and Windows accent are preserved. Resource selection and secret-store authorization still require web chat; this is not complete web parity.
Ready for review at the user's request, not fully validated or ready to merge. Current-source build, automated suites and changed-state UI proof remain outstanding. The isolated manual preview uses the last built source, before the two review corrections described below; no manual pass has been reported.
Why This Change Was Made
The upstream audit and checklist in
docs/CHAT_SURFACE_PARITY.mddistinguish implemented streaming/question contracts from remaining gaps. Append-only chat frames, operational/tool updates and acknowledged question RPCs feed the native Reactor surface. Output usage is run/sequence scoped; bounded question recovery does not resubmit answers automatically.Ownership remains focused:
ChatConversationStateowns transcript transactions,ChatQuestionCoordinatorowns transient questions independently of runs,GatewayChatStreamProjectionowns connection-scoped stream baselines, andChatTimelineReducerretains timing/usage metadata.ChatRunProgressProjectionnow exposes only active or input-pending progress.ChatWorkingClawMotionowns the pure motion table;NativeWorkingClawowns native rendering and unload cleanup. No parallel Gateway client or persisted answer cache is introduced.Evidence
The October 21 full Release build passed on frozen source snapshot
15AAEC722738865194E004DFB96563E1B20E77DFEA1A421BACED31FF07E7FFA4. Its independent resource audit released all 139 recorded identities before the fixed deadline. After the normal commit command completed, all 30 physical source hashes matched the reviewed publication candidate, with no hook-induced source changes. Compared with15AA, 28 files are unchanged;ReactorQuestionPanel.csandReactorQuestionProofTests.cscontain the two later review corrections and are not covered by that build. The worktree is clean and the protected preview app/fixture payload hashes are unchanged.The rebuilt ARM64 app launched once at 21:47 UTC with the existing synthetic
chat-interactiveGateway fixture. Startup checks confirmed the exact rebuilt assembly, native process lineage, Connected/Ready status and a responsive app. This is startup evidence, not proof of the changed visual states or a real AI/provider Gateway.Superseded October 19 screenshots have been removed from the current evidence section because they show the old answered/finished status rows. Earlier native tests and screenshots do not prove the latest palette, question-dock or completed-row behavior.
Independent source review: the shared Codex helper failed authentication (401) before producing a review, so its result is
reviewer_unavailable, not a pass. The permitted independent Copilot source-review fallback on Windows found two P2 defects: terminal question failures could disappear behind newer answered/pending questions, and a native claw test still expected the former web-red color. Both were corrected, with regression assertions for the competing-question states and an independent native-accent expectation. The same reviewer checked only those corrections and found no remaining directly introduced actionable P0-P3 defects. The fallback's exact model identifier was unavailable; it does not establish helper isolation, build success or runtime behavior.Change Type
Scope
winnodeRequired proof pools
windows-winui-interactive: native question interactions, active-to-completed progress dismissal, themes and accessibility. Current-source changed-state proof is outstanding.windows-11-arm64: ARM64 build and startup passed for snapshot15AA, before the two review corrections; this does not establish current-head or complete pool coverage.Validation
Publication commit:
2ef41ef2d7feba8552658aa443b0e43839996626..\build.ps1 -Configuration Release -NoTrustRepository15AAonly, exit 0, all five build targets andAll builds succeeded!. Ran October 21, 21:30-21:36 UTC; no test execution was part of this invocation. Not rerun after the two review corrections.git diff --checkandgit diff --cached --checkdotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restoredotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restoreHistorical October 21 results apply only to predecessor snapshot
1763CE63, before the completed-activity-row fix: Shared 4,455 passed, 35 ordinary suite skips, zero failures; Tray 4,318 passed, zero skips/failures. Its five palette results and 24 unique claw-motion cases passed. These results are retained as historical evidence, not current-source passes.The latest five added terminal/pending-input regression cases and seven selected native cases have not been executed. The native set comprises four question-state/theme tuples (including the extended unavailable-feedback assertions), two active-to-completed layout widths and the fixture-backed answer/composer flow. The corrected claw geometry/accent/motion/unload proof also remains unexecuted. The user requested manual validation instead of another local test run; the repository's automated requirements have not been waived or relabeled complete. No new producer/runtime slot was granted for the review corrections, and the live preview's loaded outputs remain protected.
Real Behavior Proof
15AApre-commit payload, not publication commit2ef41ef2d7feba8552658aa443b0e43839996626. It excludes the two later review corrections; the physical-source comparison above records that delta.OpenClaw.GatewayFixtureHost.dllwith--appbound to the rebuilt Release executable,--scenario chat-interactive,--interaction question-choiceand a fresh isolated--artifactsdirectory. The fixture navigated to Chat during normal startup. No automated chat send, answer, screenshot or test was performed in this launch.Fixture ready; independent readiness inspection confirmedconnectionStatus=Connected,overallState=Ready,appResponding=trueand the rebuilt app DLL SHA-2567AC7BC035A7AD647145E48EDE063571DAEB775C99BF71796E846C14A016936FB.15AApreview is available for the user's manual check. This does not demonstrate that the answered question or terminal progress row actually disappeared on screen, and it cannot prove the later terminal-feedback correction.Yes/No/N/A) N/A. No current-source changed-state screenshot is attached.Security Impact
Yes/No) No new Windows node capability or permission.Yes/No) Yes, transient question secret inputs.Yes/No) Yes,question.list,question.get,question.resolveon the existing authenticated operator connection.Yes/No) No new execution capability; presentation and separate question answers only.Yes/No) Yes, existing operator-visible question records are consumed.Yes, explain the risk and mitigation: session/agent-scoped display and submission, exact acknowledgement, stale-generation/revision fences, no automatic answer resubmission, no question/answer persistence, discarded secret defaults, cleared secret drafts, explicit safe HTTP/HTTPS links and no fabricated resource/secret-store authorization. Exec approvals remain separate.Compatibility and Migration
Yes/No) Yes; unsupported question listing does not fail chat.Yes/No) No user configuration changes.Yes/No) No.This PR uses a branch in the same repository. GitHub's fork-only maintainer-edit toggle is not applicable; repository write permissions govern branch edits.
Review Conversations