Skip to content

feat(threads): show native async questions in the answer form - #1449

Merged
nixuuu merged 2 commits into
devfrom
feat/async-user-questions
Nov 28, 2026
Merged

nixuuu merged 2 commits into
devfrom
feat/async-user-questions

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Change

Codex can ask a question while it continues working. Its suggested answers and free-text input now appear in the existing Canopy question form on web, desktop and mobile. Submitting the form delivers the answer to the running turn. When that turn has finished, the answer starts a new one.

The worker preserves structured questions in completed messages and recovered transcripts. The gateway persists each form with its source message before acknowledging the event. Replaying the same item preserves the original form and answer. Blocking Codex requests also pass their full question and option data to the form.

Verification

  • 54 focused tests passed across the Codex adapter, paired mobile transport, gateway question delivery and the domain answer contract. Coverage includes an in-turn reply, a free-text reply after reconnecting to a finished turn, repeated messages and long suggested answers.
  • Gateway and worker typechecks, lint and formatting for the affected files, and diff checks passed locally.
  • With Codex app-server 0.172.0 and a loopback Responses API fixture in Default mode, the native tool emitted two structured questions and returned {"accepted":true}. The app-server issued its next call and completed the same turn before any user reply. Codex labels the question final_answer; the adapter test checks its Canopy progress phase for live and recovered messages.
  • The 430 px Chromium smoke test passed a native final_answer question through the production Codex mapper and into the gateway over WorkerLink. The working header showed “Running bun test…” beside the open form. Selecting an answer and pressing Submit answer delivered it once to the scripted worker in the same running turn while the command stayed active. The paired-client test also exercises the phone's turn summary for blocking and asynchronous questions.
  • Full repository verification runs in GitHub CI.

Copy audit

With an asynchronous question open, the work header used to say “Waiting for your answer…”. It now shows the current activity or “Thinking…”. Blocking questions keep the waiting status. The form uses the existing question, option and submit labels. Replies to native questions include the question text with the chosen answer so readers can see what was decided.

@nixuuu
nixuuu enabled auto-merge (squash) November 28, 2026 20:23
@nixuuu
nixuuu disabled auto-merge November 28, 2026 20:33
@nixuuu
nixuuu enabled auto-merge (squash) November 28, 2026 20:34
@nixuuu
nixuuu merged commit c3d6dca into dev Nov 28, 2026
26 checks passed
@nixuuu
nixuuu deleted the feat/async-user-questions branch November 28, 2026 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant