Repository navigation
feat(ui): make optional-question dismissal reversible - #154692
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 maintainer review before merge. Reviewed September 21, 2026, 10:15 AM ET / 14:15 UTC (Revision 3). ClawSweeper reviewWhat this changesThe Control UI remembers optional-question dismissals and adds Undo and Answer actions that preserve unfinished answers. Merge readiness✅ Ready for maintainer review Keep open: the merged prerequisites do not cover this remaining capability. The introduced changes have no actionable correctness or security findings, and the supplied browser evidence supports the intended behavior. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI turns optional questions in conversation history into answer cards. Its existing browser-local draft store now remembers dismissal, while canonical conversation history remains authoritative about submitted answers. flowchart TD
A[Conversation history] --> B[Question presentation]
C[Dismiss or restore action] --> B
B --> D[Existing browser draft store]
D --> B
B --> E[Pending answer card]
B --> F[Dismissed transcript summary]
F --> C
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +109, Tests +349. Total +458 across 13 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep dismissal and restoration in the existing question presentation and draft store, preserving canonical answers and recoverable unfinished input. Do we have a high-confidence way to reproduce the issue? Not applicable as a feature acceptance question; current-main source establishes the missing dismissal persistence and Undo path, and the supplied baseline capture shows the returned card. Is this the best way to solve the issue? Yes. Extending the existing browser draft owner is a narrow solution, with backward-readable records and restoration checks that preserve authoritative conversation history. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 900f00302f51. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
Co-authored-by: VACInc <[email protected]>
Co-authored-by: VACInc <[email protected]>
|
@clawsweeper re-review The draft-persistence prerequisite #154473 is merged, and this PR now targets main at The current-head before/after screenshots and videos are embedded in the updated body. Dismiss and Answer both survive reload, with zero sends/resolves/aborts; 65 focused tests and targeted lint/format checks pass. Fresh exact-head CI is running. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash auto-merge.
|
|
Umbrella coordination for #154395: this already-merged PR provides browser-local optional-question dismissal with Undo and Answer, scoped to the same browser and authenticated Gateway identity, with seven-day expiry, shared 20-record capacity, and Incognito/deletion privacy. Dismiss sends no answer, grants no approval, resolves no blocking question, and stops no work. Saved-answer reconstruction is #154312, unfinished-draft recovery is #154473, and outbox delivery/retry remains open in #154486. No state change is needed here. |
Keep dismissed optional questions dismissed across reloads while retaining their unfinished answers. Offer Undo and Answer restoration through the existing authenticated draft store without sending an answer or stopping work. Await the asynchronous reopen action in the restart-recovery regression test. Preserve canonical-answer, owner-change, and deletion safeguards. Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: VACInc <[email protected]>
Prerequisite #154473 is merged. This PR now targets
main; the focused dismissal change and original contributor ancestry are preserved. Saved-answer recovery #154312, originally contributed by @jb510, is also merged.Related: #154395
What Problem This Solves
Optional questions currently return after a refresh when skipped, and offer no immediate way to undo that choice.
User Impact
Users can dismiss an optional question, undo the dismissal, or answer it later from the conversation. Their unfinished answer is preserved. Dismissal does not send an answer, approve anything, resolve a blocking request, or stop work. Blocking questions retain Skip.
This is browser-local presentation state with the prerequisite's authenticated identity, expiry, capacity, and Incognito/deletion rules. No migration or user action is required.
Why This Change Was Made
Dismissal reuses the existing composer draft owner. Undo and Answer consult current conversation state and wait for the existing durable writer before revealing a restored answer. Late storage completion cannot reopen a canonically answered question or a replacement owner, and a newer completion boundary is saved before restoration completes. A failed save still permits answering with the existing unsaved notice.
The summary/answer-codec extraction is behavior-preserving; the canonical matcher, the prerequisite's newer Submit/reload regression, and its serialization and SAFETY-comment repairs remain intact. No separate storage or delivery manager is added.
Evidence
Final main-targeted candidate
Head
4d00bc0b6660fec854140f7e3db6dc3dd5be83c5includes the landed draft prerequisite and repairs the CI failure by awaiting the asynchronousreopenaction in the existing restart-recovery test. No assertion was weakened and no product behavior changed in that repair.chat.send,question.resolve,chat.abort, or persisted answer messages at every stage; zero browser errors. Maintained mock Gateway with real browser IndexedDB, synthetic content, dark 1440×1000. This is not live Gateway/provider proof.0ce174f0b1a4eea126c8398d1eb4c999a34a49f1reproduces Skip → reload → unwanted question.4d00bc0b6660fec854140f7e3db6dc3dd5be83c5, after the original run finished. Attempt 1 failed in a mobile question-collapse click timeout, a board action in unchanged code waiting for its secondboard.update, and a SQLite checkpoint-recovery assertion. The original logs/diagnostics are retained; assertions and deadlines are unchanged. Local diagnostic replays passed: browser shard 2/12, 244 tests / 51 files in 284.74s (Node 26.8.2); browser shard 10/12, 238 tests / 53 files in 240.30s (CI-matching Node 24.19.0); config shard, 1,329 tests / 86 files in 170.96s (Node 24.19.0, two workers). All three formerly failing hosted jobs passed on the diagnostic replay. The original failures remain unreproduced, not fixed; no additional source change, assertion relaxation, or deadline increase was made.Original stacked-candidate evidence
Exact candidate
0be34e08b4d4e2f39ef93ffe8b74ce9d171e3338on draft parent7a25c100af2bda0fc5d092bb6d204702205837d3: 109 focused tests passed (7.73 seconds whole command), 34 browser scenarios passed (46.71 seconds), and the complete 12-file changed-file gate passed in 401.57 seconds with unchanged SHA and clean status. This includes core/UI types, formatting, i18n, dead exports, lint, styles and guards. Final main-targeted validation is recorded above.Two delayed-write/remount regressions fail before the restoration fix and pass after it. The held-writer barrier establishes the real uncommitted transaction before mounting the second reader; no reload assertion was weakened.
Final standalone source after summary extraction passed 64 focused tests across two files in 3.20s, UI types, and type-aware lint with zero warnings/errors (26.9s). Its targeted dismissal browser scenario passed in 10.10s. Those timings are whole commands, not per-file allocations.
Before the pure extraction, the complete corrected standalone candidate passed 108 focused tests across five files in 4.66s and 15 async-question browser scenarios in 27.44s. These are supporting input results, not hosted CI on a future publication head.
The browser flow reloads immediately after visible Undo and Answer restoration, retains the original answer, and observes zero
chat.send,question.resolve, andchat.abortrequests. Transport is the maintained mocked Gateway; persistence is real browser IndexedDB.The final 12-file composition is based on draft candidate
7a25c100af2bda0fc5d092bb6d204702205837d3, which replays onto current main. It preserves the compact title, multiline answer controls, canonical matching, and saved Submit/reload case. Shared types use the prerequisite's leaf contract, with no type-only summary cycle. The new draft Skip regression is strengthened to assert that dismissal stays out of pending questions after reload and later completion while retaining its answer. Final composed-candidate changed-file checks pass as recorded above. Final main-targeted validation is recorded above.Test-cost scope
Measured at exact
0be34e08b4dwithpnpm test <file> --maxWorkers=1(whole-command wall time): draft/persistence regression file 3.207s; plugin-question view 2.950s; composer 3.874s. All passed. The complete 34-scenario browser command covers both async and blocking-question files in 46.71s; that total is not allocated to individual files.Before / after
Before — Skip hides the question, but reload brings it back.
After — dismissal survives reload, with Answer available to restore it.
Video proof
Before (9.16 seconds):
skip-before.mp4
After (15.04 seconds):
skip-after.mp4
Contributor credit
Original implementation by @vincentkoc. Landing test repair and verification with @VACInc.
Work sessions