Repository navigation
fix(ui): show the check mark on the custom ask_user answer - #199999
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 real behavior proof before merge. What this changesShows a check mark when a custom answer is selected in a multi-select question. Example: Select Tests and Docs, then type Metrics as a custom answer.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains Keep open: this PR fixes a current UI defect with a focused change, and no introduced correctness bug was found. Priority: P3 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI question panel derives selection from the answer draft and passes it to the answer controls, which render selection feedback before submission. flowchart LR
A[Gateway question] --> B[Question panel]
C[Custom answer draft] --> B
B --> D[Answer controls]
D --> E[Selected checkbox mark]
B --> F[Answer submission]
Technical reviewBest possible solution: Render the custom checkbox tick directly from its existing selected prop while preserving radio rendering and answer submission. Do we have a high-confidence way to reproduce the issue? Source traces nonempty custom text to selected styling and an empty checkbox on current main; no browser reproduction or tests were run during this read-only review. Is this the best way to solve the issue? This is the smallest complete fix: use the selection value already owned by the panel and extend its existing behavioral test with the missing visible-marker assertion. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 799bc0bde925. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +2, Tests +5. Total +7 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label 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 November 16, 2026, 1:35 AM ET / 06:35 UTC. |
|
The review is code-clean (patch quality 4/6, no findings); the only blocker is the before/after browser capture. This is a one-line visual marker fix: the custom answer row now renders I do not have a served fixed build on the authoring host: the installed build is 2026.11.3 (unpatched), and the branch has not been built locally. The before state is reproducible in 11.3; the after state requires the branch build. Could a maintainer confirm whether the focused regression assertion is acceptable for this visual-only change, or approve the CI workflow so the UI suite runs? If screenshots are mandatory, guidance on the expected build/run path (or a CI artifact) would help. |
|
Real-browser proof for this PR at Setup: each ref built in a secretless
So the tick appears exactly when the custom answer is submitted, and clearing the text removes the tick and the answer together: the marker reads the same trimmed-text Observed lines (candidate, Chromium): Base, same step A2: Regression: Control UI bundle: owning chunk Screenshots, in order: base with the own answer typed (empty box), this PR with the own answer typed ( |
* commit '391dea93e0a97fff97f9f3d5e94eac992b247b09': (21 commits) test(update): cover maintenance release before conversion (#204548) fix(ci): control memory pressure in cron rearm fixture (#204543) fix: align release workflow tests with retained evidence test(ui): open the Settings drawer by keyboard before the Escape check (#204539) fix(ci): avoid redundant globs for literal test inventories (#204529) fix(pr): retain protected resources after native squash merges (#204496) fix(ui): show the check mark on the custom ask_user answer (#199999) chore(ui): refresh control ui locales (#204542) fix(update): build Git releases only once (#204512) fix(ci): avoid repeated full-inventory matching (#204525) test(ci): align exec completion fixtures with process instances (#204507) test(update): replace mocked JSON routing with child proof (#204527) fix(slack): reject system events with an unresolved conversation type (#204444) test(agents): distinguish the source-session root (#204524) perf(ai): keep Responses tool history checkpointed across turns (#204519) feat(zai): add GLM-5.4 as the Coding Plan default (#204522) ci: cover unscheduled test files daily and fail when a test has no scheduled lane (#204472) fix(ci): model a distinct FRV job retry in CLI fixtures (#204517) improve(ui): defer sign-in controls until needed (#204484) test(agents): assert the prepared MCP hook prompt (#204508) ...
…199999) Root cause: ui/src/pages/chat/components/chat-question-answer-controls.tsx:267 (`QuestionFreeText`) renders an empty marker span for a multi-select own answer, so the row gets the selected style but never the `✓` that the regular options render from the same state. ## What Problem This Solves In a multi-select `ask_user` question, typing a custom answer highlights the custom row but its checkbox has no tick. The regular options show a check mark when selected; the custom answer row does not, so the user cannot tell that the custom answer will be included. The regular option marker renders `{implicit() ? "−" : selected() ? "✓" : ""}`, but the custom-answer branch rendered an empty marker span for `multiSelect`. The selected class is applied, so the box lit up without a mark. ## Fix Render `{props.selected ? "✓" : ""}` inside the custom marker span, matching the regular option branch. `selected` is the same trimmed-text test that decides whether the typed answer is submitted (`questionDraftValues`), so the tick appears exactly when the custom answer will be sent and goes away when the text is cleared. Single-select own answers keep their radio mark. ## Evidence - Regression in `ui/src/pages/chat/components/chat-question-card.test.tsx`: after typing an own answer in the existing single-to-multi-select flow, the custom marker's text must be `✓`. Fails on the base source (`expected '' to be '✓'`), passes with the fix. - Built Gateway + built Control UI in a real browser (Chromium), with a scripted model that calls `ask_user`: base shows the lit custom row with an empty box; this PR shows `✓`; the agent receives both the option and the custom answer; clearing the custom text removes the tick and the answer together. Proof and screenshots: openclaw#199999 (comment) Fixes openclaw#199997. Thanks @tre1d for the report and the fix. ## Merge danger Two-way door: presentation-only change in one Control UI component; a revert fully undoes it. No state, config or contract change. Blast radius: the own-answer row of multi-select question cards in Control UI chat. Co-authored-by: Ayaan Zaidi <[email protected]>




Root cause: ui/src/pages/chat/components/chat-question-answer-controls.tsx:267 (
QuestionFreeText) renders an empty marker span for a multi-select own answer, so the row gets the selected style but never the✓that the regular options render from the same state.What Problem This Solves
In a multi-select
ask_userquestion, typing a custom answer highlights the custom row but its checkbox has no tick. The regular options show a check mark when selected; the custom answer row does not, so the user cannot tell that the custom answer will be included.The regular option marker renders
{implicit() ? "−" : selected() ? "✓" : ""}, but the custom-answer branch rendered an empty marker span formultiSelect. The selected class is applied, so the box lit up without a mark.Fix
Render
{props.selected ? "✓" : ""}inside the custom marker span, matching the regular option branch.selectedis the same trimmed-text test that decides whether the typed answer is submitted (questionDraftValues), so the tick appears exactly when the custom answer will be sent and goes away when the text is cleared. Single-select own answers keep their radio mark.Evidence
ui/src/pages/chat/components/chat-question-card.test.tsx: after typing an own answer in the existing single-to-multi-select flow, the custom marker's text must be✓. Fails on the base source (expected '' to be '✓'), passes with the fix.ask_user: base shows the lit custom row with an empty box; this PR shows✓; the agent receives both the option and the custom answer; clearing the custom text removes the tick and the answer together. Proof and screenshots: fix(ui): show the check mark on the custom ask_user answer #199999 (comment)Fixes #199997. Thanks @tre1d for the report and the fix.
Merge danger
Two-way door: presentation-only change in one Control UI component; a revert fully undoes it. No state, config or contract change. Blast radius: the own-answer row of multi-select question cards in Control UI chat.