Repository navigation
fix(ui): generic mock chat sends show a visible outcome - #125347
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 17, 2026, 1:45 PM ET / 17:45 UTC. ClawSweeper reviewWhat this changesThis PR makes the standalone Control UI mock leave a generic session idle and show a deterministic reply after sending, adds browser E2E coverage, and stabilizes an existing image-lightbox E2E wait. Merge readinessNo blocking findings. The focused mock-harness repair follows the Control UI’s normal Priority: P3 Review scores
Verification
How this fits togetherThe standalone Control UI mock supplies Gateway-like history, request responses, and events to a browser-based developer harness. A selected mock session sends flowchart LR
A[Developer selects mock session] --> B[Standalone mock gateway]
B --> C[Session history and active-run decision]
C --> D[Composer sends a message]
D --> E[Started response and final chat event]
E --> F[Visible assistant reply in Control UI]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +40, Other +87. Total +127 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Merge the focused developer-mock repair on its exact green head while keeping production chat behavior unchanged. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: current main applies the plan/in-flight snapshot to the generic mock scenario, while the new browser test selects a generic session and verifies the idle send path. Is this the best way to solve the issue? Yes. The mock gateway owns both the missing response and final event, so scoping fixture state and emitting the existing event shape is preferable to modifying production chat code. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1ea18c8cd8ca. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Land-ready proof for exact head f1772f980d2a1f433fa9f2ee2abd825a253bd5f1:
No known proof gaps. Ready for the native |
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where developers validating the generic Control UI mock could not exercise an ordinary send outcome: every available demo session appeared active, and
chat.sendcleared the composer without any visible acknowledgement.Why This Change Was Made
Scope the existing plan/in-flight fixture to its owning main demo session, leaving another generic session idle. The stateful mock now acknowledges
chat.sendand emits the standard deterministic final chat event. Persistent composer draft storage is explicitly unchanged.User Impact
Developers and source-blind behavior validators can now select an idle demo session, send a message, and observe both the submitted user message and a deterministic final reply instead of a silent composer clear. This changes only the developer mock harness, not production chat behavior.
Evidence
https://github.com/user-attachments/assets/06a080e0-d91d-4b65-b0d4-6b7e086b3610
node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/board-fixture.e2e.test.tsnode scripts/check-changed.mjs -- scripts/control-ui-mock-dev.ts ui/src/e2e/board-fixture.e2e.test.tsgit diff --check