Repository navigation
fix(agents): deliver Codex input choices in Telegram and web chat - #124146
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 6:21 AM ET / 10:21 UTC. ClawSweeper reviewWhat this changesThis PR marks harness-generated user-input prompts so message-tool-only routing delivers choices to the originating Telegram or web chat. Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readinessKeep open for maintainer review: the patch targets the canonical payload producers and covers the shared dispatcher path, but final Codex-contract verification is blocked because the required sibling source checkout is absent. Priority: P1 Review scores
Verification
How this fits togetherCodex native requests become harness question payloads, then flow through the shared reply dispatcher to chat surfaces. The changed metadata preserves these operator-input prompts while ordinary source replies remain suppressed. flowchart LR
A[Codex user-input request] --> B[Harness input bridge]
B --> C[Gateway question payload]
C --> D[Reply suppression decision]
D --> E[Telegram delivery]
D --> F[Web chat delivery]
E --> G[Operator answer]
F --> G
Decision needed
Why: Repository policy makes direct upstream Codex inspection mandatory for this Codex-backed behavior, and the supplied media does not show this PR's after-fix flow. Before merge
Agent review detailsSecurityNone. PR surfaceSource +55. Total +55 across 2 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. Mantis proof suggestionA short Telegram Desktop capture would directly validate the repaired user-visible delivery path. A maintainer can ask Mantis to capture proof by posting this exact PR comment: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the shared producer-level marker change, then verify the exact Codex request contract and one redacted Telegram or web-chat round trip before merging. Do we have a high-confidence way to reproduce the issue? No live reproduction was run in this read-only review, but current-main source directly shows that unmarked harness blocks are suppressed in message-tool-only turns and the PR exercises that path. Is this the best way to solve the issue? Unclear: the placement is the narrowest shared OpenClaw repair, but the required direct Codex contract inspection remains unavailable. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against dec4d44618c3. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Exact-head Telegram proof (
This directly exercises the changed source-suppression delivery path. Tester, bot, chat, question, connection, and message identifiers are omitted. |
|
Final Telegram gate — exact head
Evidence retained locally: |
|
Direct Codex contract verification for exact head
Contract conclusion: OpenClaw owns presenting this blocking server request and returning the keyed answer. The PR changes only that presentation delivery boundary; request/answer protocol shape is unchanged. |
|
@openclaw-mantis telegram desktop proof: verify and record that a Codex request_user_input prompt appears with choices in the originating chat and that an answer resumes the request. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
…enclaw#124146) Mark harness-owned input prompts for source-suppression delivery so Codex choices and secret prompts reach the originating chat during message-tool-only turns. Co-authored-by: Ayaan Zaidi <[email protected]>
Closes #123561
What Problem This Solves
Fixes an issue where users running the native Codex harness in a message-tool-only turn would never see
request_user_inputchoices in Telegram or web chat. The question remained pending, so the run waited indefinitely.Why This Change Was Made
Harness-owned input prompts now carry the existing source-suppression delivery marker at their canonical producer. This covers gateway-backed choices and the sibling secret/plain prompt path without Codex-, Telegram-, or UI-specific policy.
Root cause: #110372 added the portable harness question producer, but its block payload lacked the internal delivery marker.
message_tool_onlytherefore suppressed the originating source reply before channel/UI delivery even though Gateway question registration and answer routing were healthy.Overlap checked: #102261 is a broad interactive-parity feature stack; it does not provide this focused owner-boundary repair. No PR references #123561.
User Impact
Codex questions appear in the originating Telegram chat or web chat while ordinary assistant source replies remain suppressed. Users can answer instead of seeing a silent hang.
Evidence
3d643f7b7b6: Codex emitted a two-choice request; Gatewayquestion.listshowed it pending; Telegram recorded typing only—no prompt or buttons. Diagnostic resolution reached Codex with the exact answer, proving registration/wait/answer healthy and isolating delivery suppression.delivers gateway-backed choice harness questions in direct message-tool-only turnsfailed with zero block deliveries.node scripts/run-oxlint.mjs <2 touched files>pnpm tsgopnpm check:test-typespnpm check:import-cycles— 0 runtime value cyclesoxfmt --check <2 touched files>andgit diff --checkFinal exact-head ClawSweeper and Telegram proof follow under the fast-lane gates.