Repository navigation
Description
Context
User report: selecting a predefined answer in ask_user leaves a Submit button available. Selecting Other opens a custom-text field but removes the Submit button. The user later clarified that their keyboard inserted a newline rather than submitting. A working explicit Submit button resolves their reported problem; no separate Enter-failure investigation is requested.
Expected: the Submit button stays available when Other is selected, and submits the text entered in that field. Enter may remain an additional keyboard route; it must not be the only route.
Source inspected at ca1facc1e7086bd2119c260150e9f091e16817f1:
AskUserCardexplicitly hides actions while Other is open:showActions = pending && !otherOpen && p.showActions !== false(packages/ui-kit/src/decisions/AskUserCard.tsx:206–208); the field is rendered at :318–319 and Submit at :337–346.- The single-question consumer passes
onOtherSubmitandonPrimary, but not a controlled custom-text value/change handler (packages/ui-react/src/components/chat/ask-user-card.tsx:373–386). Keeping the button visible must also connect it to the current typed answer; merely removing the visibility condition is insufficient. AskOtherFieldforwards Enter to its submit callback (packages/ui-kit/src/internal/AskOtherField.tsx:33–44). The reported Enter failure did not reproduce in the bounded mounted-consumer control below; verify the affected event/answer path before attributing its cause.
Out of scope
No redesign of the question tools, new wire format, automatic submission on selection/typing, permission changes, answer persistence/retry policy changes, or unrelated rank/form behavior changes. No separate investigation or change of the reported keyboard newline/Enter behavior is required.
Scope
Keep the explicit Submit action available while editing Other and submit the current nonblank custom text through the existing answer path. Preserve existing keyboard submission behavior; the user has withdrawn the separate Enter-failure report. Preserve predefined answers, multi-select combinations, grouped questions, cancellation, request identity and existing answer delivery guarantees. Update source comments, stories or documentation that currently prescribe replacing the Submit row, reflecting this user-requested correction.
Acceptance criteria
- Selecting Other does not remove the Submit button; typing a nonblank fictional answer and clicking/tapping Submit sends that exact custom answer once for the original request.
- Preserve existing valid Enter submission and IME composition behavior while adding the explicit button; keyboard-specific newline behavior is not a prerequisite for this fix.
- Empty/whitespace custom text is not sent as a valid answer; the explicit action communicates its validation/disabled state consistently.
- Switching between Other and predefined options preserves the intended selection semantics. Multi-select and grouped-question submission retain their existing supported behavior.
- Keyboard users can reach and activate Submit; phone/touch users have a visible usable submission action. Verify narrow and desktop layouts in both themes, with existing focus, accessibility and target-size rules intact.
- A regression test fails on the original missing-button/current-text submission boundary and passes after correction. Retain relevant keyboard and sibling regression coverage without treating the withdrawn Enter report as an unresolved failure.
Verification
Use the existing ask-user kit stories and real offline consumer/browser fixtures with Odysseus custom text. Inspect actual outbound answer contents and request identity, not only callback presence or a screenshot. Preserve offline guards, answer-delivery/reconnect behavior and cleanup. No provider call is necessary.
Contract impact
No CLI/MCP/HTTP/wire shape change is intended. This corrects UI submission behavior; update affected interaction documentation and include the normal published-package behavior changeset.
Priority and readiness
P1, explicitly requested by the user. The requested implementation and fixture corrections are preserved in draft PR #1896 at 423dd6bb5a9987aeb9b41be5560df517b80d2221, with local behavioral, styled browser, mutation, story and type/preflight proof. Issue and PR retain the confirmed 0.44.0 release milestone. The scope is complete; #1910 is closed through qualified PR #1928. The candidate is rebased onto that correction at main 155dffdd8237a1543da3109f3de0b659cfac5c93; the separate corrected-source paint recurrence #1938 now blocks final hosted qualification and merge. agent-ready marks the fully scoped work; the resolved dependency label is cleared. No merge or complete hosted proof is claimed.
Reproduction result — 2026-10-14
Missing Submit button reproduced in the actual consumer. The reported Enter failure did not reproduce in this control. Inspected/tested main ca1facc1e7086bd2119c260150e9f091e16817f1, Bun 1.4.2, Playwright 1.63.0, native Chromium 152.0.7977.82 on Linux. A detached isolated checkout used its own frozen dependency install (923 packages) and successful complete build. Production files were unchanged.
Three temporary diagnostics extended the existing packages/ui-react/tests/answer-delivery-runtime.test.ts harness: real public ChatPage, actual host/WebSocket/SQLite dispatch, scripted keyless backend, IndexedDB answers and Web Locks. Browser contexts were fresh, 390×900, dark, reduced motion; the normal test/offline preload and existing loopback-only browser routing stayed active. Fictional question: “Which harbour first?”; custom answer: “Scheria — Σχερίη”. No provider call.
- Predefined control passes: choose “Ithaca — Ἰθάκη”, click Submit, observe one ask_user_response and one backend settlement with the exact answer (1404.01ms).
- Missing-button regression fails as expected: choose Other and fill the nonblank custom answer. The native input contains the text, but the Submit count is zero. Named assertion
OTHER_CUSTOM_TEXT_HAS_EXPLICIT_SUBMITfails with Expected 1 / Received 0 (1174.58ms). This is a runtime assertion failure after mounting/interacting, not a setup error. The Enter hint remains visible. - Enter control passes: in a fresh real request, choose Other, fill that custom answer and press native Enter. The host receives one ask_user_response; the scripted backend settles exactly once with
{"answers":{"Which harbour first?":"Scheria — Σχερίη"}}(1364.52ms). Thus this control does not reproduce the reported non-working Enter path and does not disprove device/context-specific failure.
Command from the isolated checkout: BRAIN_REQUIRE_CHROME=1 PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium bun run test packages/ui-react/tests/answer-delivery-runtime.test.ts -t 1887. Result: 2 pass / 1 expected failure / 20 name-filtered, three assertions, 5.01s, exit 1. The filtered tests were not claimed as complete-suite proof. Temporary diagnostics/patch and raw receipts are retained outside authored source; diagnostic source edits are restored after the run. No fix or repaired pass is claimed.
The collaborative preview independently mounted the unchanged kit card: choosing Other removed Submit, while Enter delivered the custom text to its fixture callback. This is component evidence only, separate from the real consumer/backend result above. Two earlier pinned-container attempts did not reach a usable ask request; diagnostic tracing identified the existing worker-host guard refusing absent bubblewrap in that browser-only image. Those attempts are excluded from product reproduction evidence. The successful host control used installed bubblewrap and the existing guards, without bypassing admission.
Historical result: the Enter-specific report remained unreproduced at this point. The later user clarification below withdraws it; no further Enter investigation is needed.
User clarification — 2026-10-14
The user confirms that their keyboard inserted a newline rather than submitting, and explicitly withdraws the need to reproduce or repair Enter separately. Keeping a visible usable Submit button for a nonblank custom Other answer resolves the requested interaction. Preserve existing keyboard behavior and ordinary regression coverage. Clear needs: repro and add agent-ready: the button disappearance is independently reproduced, the current-text wiring requirement and acceptance criteria are complete, and no additional design or policy choice is required. P1 remains explicitly requested; no release milestone is selected. No implementation is claimed.
Earlier qualification and handoff — 2026-10-14
PR #1896 preserves the requested fix on fix/1887-other-submit-5ae2278d, final head 143032d17e5a9d7d40bb2f0ebac86b89a0869d28. It is handed off as draft under Refs #1887. Submit and Dismiss remain visible for Other, blank text refuses submission, and the current draft follows the existing answer path. Source/story/README and the superseded interaction ruling are updated. Optional controlled kit props have an additive minor changeset, API report and package API contract update. No publishing is performed.
Final local proof: 7 actual-host browser cases / 49 assertions, with the real kit and consumer stylesheets in the four 320px/1280px × dark/light cases, native touch taps, keyboard activation, empty-text refusal, switching/editing, exact request/answer settlement, multi-select, group, Enter and IME coverage. Restoring the original hide-Submit condition fails the styled missing-button assertion; a separate stale-text mutation fails the actual backend-answer assertion. Both are restored. Focused store/consumer/complete delivery coverage previously passed 96 tests / 415 assertions; both pinned story themes pass 44 tests. Final strict types and committed-head preflight pass: 621 tests / 3,706 assertions. The PR retains unsuccessful test-development receipts separately.
Automatic current-head CI run 38598946181, attempt 1, checks out 116a2cc75d535e6a3be33966cd3b16e60dce2609, parents main 210b35c52259454952a060644980aabd83c64e7a and the final head, tree 40d3d6249cbd9a9ca434258feffc8674fd1dca4b. Metadata, strict verification, captures and native runtime passed with independently inspected checkout logs. The final-head contract gate passed on the actual PR head. Browser shard 1 fails two unchanged overlay-navigation assertions (Files NAVIGATION_PAINT_UNSHADED at 0ms, dark 320px, fine/coarse pointers); the same job passes both AskUserCard story suites, 44 tests. #1910 retains the actual failure, source/control identities and missing image-pair diagnostics. Other selected proof is incomplete; neither that failed run nor subsequent cheap draft gates qualifies merge. No unchanged failure rerun, guard weakening or unrelated repair is included.
To resume: integrate the qualified correction merged in #1928, fetch current main and assess relevant changes, reconcile this preserved branch with the qualified correction, then mark PR #1896 ready and complete all selected current-candidate hosted checks. Restore a closing reference only when full scope and qualification are met, inspect actual head/base/tree and release milestones, and perform the matching-head squash/closure reconciliation. The claim is released for this blocked handoff; no second issue is taken for implementation.
2026-10-14 correction: folded implemented behavior and the actual current-head CI blocker into the active readiness/qualification brief. Earlier reproduction and user-clarification paragraphs remain historical evidence.
2026-10-14 dependency resolution: #1910 is closed by merged PR #1928 (squash 155dffd). The destination paint oracle keeps caret styles intact and requires exact capture coherence as well as exact unshaded paint. Its full selected hosted proof passed. Consume that correction and qualify the current candidate before delivery; earlier failed PR receipts remain failed. Other scope, labels and release attribution are preserved.
Earlier resumed qualification — 2026-10-14
The user explicitly resumed this task after #1910 closed. Claim token 1887-5ae2278d-resume-20261014 owns the current assignment. Retained branch fix/1887-other-submit-5ae2278d is rebased to main 155dffdd8237a1543da3109f3de0b659cfac5c93, candidate 62bb93ee1e5564e6c34009209d359ed5cc41b8cc, tree 40dc40448c967f5d83bd345feb3ed39483d175cb. The only conflict was competing package-contract append sections; both are retained. Main's real capture correction, controlled liveness and touch-only hint behavior are preserved.
Fresh complete build, strict types, full focused consumer/store/delivery suite (96 tests / 422 assertions), pinned story theme suites (44 tests), and committed-head preflight (623 tests / 3,714 assertions) pass. Fresh styled missing-button and stale-text mutations fail on their named runtime/backend assertions and are restored. The working tree is clean. Fresh ready-PR selected hosted proof, inspected checkout/head/base identity, release milestones and merge reconciliation remain necessary. Older failed and passing receipts remain bound to their original sources.
2026-10-14 correction: replaced the active candidate/readiness statement with the resumed source identity and qualified #1910 resolution; marked the previous handoff section as historical.
Historical corrected candidate and handoff — 2026-10-14
#1938 resolved by merged PR #1964 (3100afa2b8efa25ea31114cdee1f2a89a48dd013).
#1910 is closed and its qualified #1928 correction is incorporated from main 155dffdd8237a1543da3109f3de0b659cfac5c93. Resumed full CI 38627076350 at source head 62bb93ee exposed six related composed-story assertions and four related cold-stylesheet setup failures. Both classes are corrected on this issue: stories preserve explicit Submit/Dismiss and a valid editable full-contrast example; the styled actual-host fixture builds its real prerequisites from source before first use. No product behavior or original runtime assertions were weakened.
Final candidate 423dd6bb5a9987aeb9b41be5560df517b80d2221, tree 59a7c909eb160c4ace58e777f33d33cefac0ecba, branch fix/1887-other-submit-5ae2278d, is preserved in draft PR #1896. Final cold verification removes both UI dist directories first: all 27 actual-host/delivery tests / 160 assertions pass. Composed and single question stories pass 108 tests across both themes. Strict types and committed-head preflight pass: 623 tests / 3,714 assertions. Earlier focused product/mutation receipts remain bound to their actual sources; final changes are test-only. Issue and PR retain milestone 0.44.0.
The separate remaining failure is Files NAVIGATION_PAINT_UNSHADED at 150ms, coarse pointer/dark/320px, after the caret correction. Browser job 116069242617 checks out fa04431d9a56c4cde055e7ef1b9131f7f807633c, parents main 155dffdd8237a1543da3109f3de0b659cfac5c93 and head 62bb93ee, tree 40dc40448c967f5d83bd345feb3ed39483d175cb. The retained four PNGs are stable within each state but differ by one decoded pixel across visible/hidden states. #1938 owns that retained corrected-source diagnostic and causal next action; no cause, guard weakening or unchanged paint retry is inferred. The older #1910 receipt and closure are not treated as proof for this recurrence.
At that handoff, resumption required the qualified #1938 correction and fresh candidate proof; the dependency is now resolved as recorded below. The current implementation is not merged. This invocation releases its claim for the blocked handoff; no supporting issue is taken for implementation.
2026-10-14 correction: folded the final story/cold-fixture corrections and the distinct corrected-source #1938 blocker into the active brief. Prior failed and recovery receipts remain historical evidence, not fresh current-head qualification.
Dependency resolution — 2026-10-15
#1938 is closed after the source-bound navigation-layer correction merged in #1964. Its focused matrix passes 837 cases; automatic run 38708370560 passes every selected job and aggregate, with all twelve retained paint sets coherent and exact. The squash is verified on main; the separate main-push run 38711701989 is still running. These receipts qualify the supporting correction, not this retained candidate.
The declared qualification dependencies are now closed. Resume the retained branch/PR, integrate #1964 from main and assess relevant base changes. Complete local preflight, affected/current-candidate hosted proof, actual checkout inspection, feedback and release milestone checks before matching-head merge. Preserve all original failed receipts and restored mutation evidence. No implementation is resumed or delivery of this issue claimed by this dependency update.
Active resumption — 2026-10-15
Claim 1887-5ae2278d-resume-20261015 resumes retained PR #1896. Candidate 378e33c695d8fd6e48037ef4b2605b4d7d437d36, tree e81b25a050d187f33d084f12cb14fb66e2aeb868, rebases cleanly onto main 3100afa2b8efa25ea31114cdee1f2a89a48dd013, incorporating the qualified #1938 correction and relevant motion diagnostics. Product source remains unchanged by the rebase; published 0.43.1 workspace metadata and intervening native proof corrections are preserved.
Fresh local proof passes: delivery runtime 27 tests / 160 assertions; composed and single stories 108 tests across both themes; preflight 626 tests / 3,724 assertions. The complete pending changeset plan validates all eighteen packages at minor. PR #1896 is ready; automatic CI run 38713248463 has completed successfully. Automatic run 38713248463, attempt 1, now passes all selected execution jobs and aggregate. Actual job checkout logs, immutable API and local Git agree on merge checkout cd9a8befa74a23a845e24b7ab45801708edbaf80, recorded main/head parents and candidate tree. Browser counts are 4,567 + 4,224 (ten existing exclusions); layout 599 + 428; all four unit shards, runtime, captures, packaging and verification pass. No retained categories. No review findings remain. Issue and PR milestones read back as 0.44.0. PR #1896 merged by matching-head squash as d2b4cf941498d1276deee8acf42f411b7d1c8090; this issue is closed. Fetch, ancestry and immutable API verify parent 932d2b3066a34f725531b70ef108cc6c05a0b5ae and expected combined tree 7a4daf9674d84ede7efffafab9d2930f2e99f335. The intervening recording-test and rounded-container focus changes were inspected as unrelated to this answer path; the PR body retains that assessment and the earlier run’s actual tested identity. Fresh automatic main-push CI run 38716097921 is in progress, not claimed green. No publishing was performed. Prior failed receipts retain their original source identities. No active dependency blocker remains.
Activity
schlessera commentedon Oct 14, 2026
2026-10-14 reproduction at
ca1facc1e7086bd2119c260150e9f091e16817f1: the actual ChatPage/host answer-delivery fixture reproduces the missing Submit button after Other text is entered.OTHER_CUSTOM_TEXT_HAS_EXPLICIT_SUBMITfails Expected 1 / Received 0. Predefined Submit and custom-text Enter controls both pass; Enter sends the exact answer once to the scripted backend. Aggregate: 2 pass / 1 expected failure, 20 name-filtered, 5.01s. The issue body contains commands, setup exclusions and proof limits. P1 retained; needs: repro now specifically tracks the still-unreproduced Enter failure. No product fix or complete-suite pass is claimed.schlessera commentedon Oct 14, 2026
User clarification, 2026-10-14: the keyboard inserted a newline; no separate Enter reproduction or repair is requested. The desired fix is the persistent visible Submit button for a custom Other answer. Folded that scope into the body, cleared needs: repro and marked agent-ready based on the existing missing-button reproduction and explicit acceptance criteria. P1 retained; no implementation or milestone selected.
schlessera commentedon Oct 14, 2026
Claiming #1887 for scoped implementation and verification. Claim token: 1887-5ae2278d-20261014. Intended branch:
fix/1887-other-submit-5ae2278d. Preserve the existing keyboard route and answer delivery guarantees; add persistent explicit submission of current custom text.schlessera commentedon Oct 14, 2026
Implementation is in PR #1896 at
f381810218377e614f904fad0e75c18db8079790. Other retains explicit Submit/Dismiss, blank text refuses submission, and current draft text follows the existing answer path. Optional controlled kit props are recorded as an additive package API change with a minor changeset; live npm is 0.43.0 and the issue/PR milestone is the confirmed next minor, 0.44.0.Real-host failing-first: four theme/width cases failed the missing-button assertion (Expected 1 / Received 0). Restored final native-touch/keyboard/custom-text/IME/multi/group cases: 7 pass / 45 assertions. Sending the earlier draft as a mutation fails the exact backend-answer assertion; restored. Focused consumer/store/complete delivery coverage passes 96 tests / 415 assertions. Both pinned story theme suites pass 44 tests. Strict types and committed-head preflight pass (621 tests / 3,706 assertions). Visual review covers 320px/desktop in both themes. No provider call or wire/answer-delivery policy change.
Selected hosted proof is running; no merge or complete CI qualification is claimed. All retained historical failing-first and unsuccessful verification attempts remain described in the PR.
schlessera commentedon Oct 14, 2026
Blocked handoff for claim
1887-5ae2278d-20261014: implementation is preserved in draft PR #1896, head143032d17e5a9d7d40bb2f0ebac86b89a0869d28, branchfix/1887-other-submit-5ae2278d. No merge occurred. Issue/PR retain milestone 0.44.0; the active body now contains the final implementation, proof, blocker and exact resume sequence.Final local styled host/browser proof: 7 tests / 49 assertions; source-bound missing-button and stale-text mutations fail and are restored. Focused consumer/store/delivery proof: 96 tests / 415 assertions. Story proof: 44 tests; final types and committed-head preflight pass (621 / 3,706). Hosted metadata, verification, captures, native runtime and contract gates passed. The actual combined browser checkout is verified, and its AskUserCard stories pass, but two unchanged navigation-paint assertions fail; remaining selected proof is incomplete.
Blocked by #1910. Resolve its missing image-pair/causal reproduction and justified correction, then assess current main and complete ready-PR current-candidate proof on the preserved branch. No unrelated fix, unchanged failure rerun, guard weakening or full-CI success is claimed. This invocation releases its assignment; no next issue is taken for implementation.
schlessera commentedon Oct 14, 2026
Resuming #1887 / PR #1896 after the user's explicit resume and the verified #1910 resolution in merged PR #1928 (
155dffdd8237a1543da3109f3de0b659cfac5c93). Claim token:1887-5ae2278d-resume-20261014. Retain branchfix/1887-other-submit-5ae2278d. Reconcile current main's fixture/keyboard changes, run scoped proof and preflight, then complete fresh ready-PR hosted qualification before merge. Earlier failed receipts remain failed; #1928 does not qualify this candidate automatically.schlessera commentedon Oct 14, 2026
Blocked handoff for resumed claim
1887-5ae2278d-resume-20261014. #1910's qualified correction is incorporated. Final preserved candidate in draft PR #1896 is423dd6bb5a9987aeb9b41be5560df517b80d2221, tree59a7c909eb160c4ace58e777f33d33cefac0ecba, branchfix/1887-other-submit-5ae2278d; no merge occurred. Issue and PR retain milestone 0.44.0.Fresh full qualification at preceding head
62bb93eeexposed six related composed-story assertions and four related cold stylesheet setup failures. Those are corrected here, with all original runtime/paint guards retained. Final cold run removes both UI dist directories first and passes all 27 delivery tests / 160 assertions. Both composed/single story families pass 108 tests. Strict types and final preflight pass: 623 tests / 3,714 assertions. The tree is clean and code is pushed.Blocked by #1938. The separate coarse/dark/320px Files paint assertion fails at 150ms on corrected main source. Retained captures are internally stable but differ by one decoded glyph-edge pixel across visibility states; causal classification remains open. The original run's two failed jobs remain failed receipts; converting to draft cancelled the remaining incomplete proof. No full-CI success, unchanged failed-paint retry or relaxed comparison is claimed.
The active issue and PR bodies contain exact source/proof identities and resume steps. Resolve #1938, assess current main, qualify this preserved candidate in a ready PR, and restore a closing reference only when complete selected proof passes. Releasing this invocation's assignment; no supporting issue is taken for implementation.
schlessera commentedon Oct 15, 2026
Resuming #1887 after #1938's qualified correction merged. Claim token
1887-5ae2278d-resume-20261015; retained branchfix/1887-other-submit-5ae2278dand PR #1896. I will integrate current main, verify the combined candidate, complete selected hosted proof and reconcile merge or document a concrete blocker.schlessera commentedon Oct 15, 2026
Delivered in PR #1896, matching-head squash
d2b4cf941498d1276deee8acf42f411b7d1c8090. Submit/Dismiss remain visible for Other, whitespace refuses submission, and the current draft settles the original request once through the existing path. Enter/IME, multi/group answers and predefined choices remain covered.Automatic ready run 38713248463 passes every selected execution job and aggregate; all actual checkouts agree with the recorded combined source. Local proof: 27 delivery tests / 160 assertions, 108 stories and preflight 626 / 3,724. Restored behavioral mutations and historical failed receipts remain recorded.
Fetch, ancestry and immutable API verify the squash on main, parent
932d2b3066a34f725531b70ef108cc6c05a0b5ae, expected combined tree7a4daf9674d84ede7efffafab9d2930f2e99f335. Intervening unrelated main changes were assessed separately; the earlier run is not claimed to have tested the newer tree. Issue and PR retain 0.44.0. Fresh automatic main-push run 38716097921 is in progress. No publishing was performed.