Repository navigation
fix(codex): prefer the callable OpenClaw question tool - #159678
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. What this changesPrefer callable OpenClaw Ask User over Codex’s blocking question tool while preserving explicit native opt-ins and restricted-tool policy. Example: A Default-mode conversation with callable ask_user asks the user to choose Reporting or Billing.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR addresses a current Codex question-tool failure, and source review found no actionable introduced defect. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Codex plugin translates OpenClaw tool availability and native configuration into app-server start, resume, and fork requests; accepted questions then use the existing interactive delivery paths. flowchart TD
A[OpenClaw turn tools] --> C[Thread configuration owner]
B[Native configuration snapshot] --> C
C --> D[Codex app server]
D --> E[OpenClaw Ask User]
E --> F[User answer]
Technical reviewBest possible solution: Keep question selection in the existing thread-configuration owner, using actual executor availability and preserving authored native preferences. Do we have a high-confidence way to reproduce the issue? Source establishes the failure: the native blocking tool defaults on, Default-mode support defaults off, and the handler rejects before OpenClaw receives the question; no runtime execution was performed during this review. Is this the best way to solve the issue? This is a focused repair: it selects the usable existing tool through one configuration owner, reuses the preflight snapshot and refresh fingerprint, and leaves native opt-ins and restricted policy intact. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 16779ec57df8. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +76, Tests +219, Docs +10. Total +305 across 13 files. Added test files: 1. View PR surface stats
Review metrics
LabelsLabel 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 HistoryReview history (10 earlier review cycles; latest 8 shown)
Reviewed October 24, 2026, 4:49 AM ET / 08:49 UTC (Revision 11). |
|
@clawsweeper re-review The requested existing-conversation live proof is now in the PR body, with inspected before/after screenshots. On the patched build, Ask User displayed the Unicode choices, accepted Reporting — 🦞, and produced the exact final answer after reload. The canonical transcript confirms one answered Ask User call, zero tool errors, and no native request_user_input attempt. Built4c96 and reviewed884 have identical production/dependency inputs; their only difference is the test inventory registration. Full CI36407747806 on884 is green. All three PR screenshots load at1280×720. |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review The authored native-question setting finding is repaired in c70f2d9. The configuration owner now resolves projected-out keys from the enabled raw layer identified by the same snapshot's winning origin and version. Actual managed Codex 0.155.1 default/true/false responses prove this shape, and the production resolver consumes all three correctly. Response-shaped regressions fail before the repair; all 190 lifecycle tests, complete selected static checks and fresh independent review pass. The PR body preserves the default-path live screenshots and clearly distinguishes their build from the new native contract proof. New-head hosted CI is pending. |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Current head 63401b8 incorporates latest main 8aec780, including the owning planner timeout fix from PR160408 for the exact failed census in CI36419673215. All14question-fix files remain byte-identical to reviewed c70f2d9; fresh managed review of the full delta against latest main is clean. The PR body records the original failure, upstream cause and measured proof, unchanged question contract/lifecycle proof, and pending current-head CI. The accepted auto-merge request was retired before this replacement. |
|
🦞👀 Re-review progress:
|
|
This pull request has been automatically marked as stale due to inactivity. |
Select OpenClaw's executable ask_user for blocking questions unless native questions were explicitly enabled. Keep retained declarations separate from executor availability and apply the policy through shared thread configuration for start, resume, fork, and supervised continuation. Resolve authored native opt-ins from effective configuration origins and enabled raw layers when the typed projection omits the setting. Preserve async questions, restricted-tool precedence, and live-thread configuration refresh.
4327616 to
48701f9
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
Select OpenClaw's executable ask_user for blocking questions unless native questions were explicitly enabled. Keep retained declarations separate from executor availability and apply the policy through shared thread configuration for start, resume, fork, and supervised continuation. Resolve authored native opt-ins from effective configuration origins and enabled raw layers when the typed projection omits the setting. Preserve async questions, restricted-tool precedence, and live-thread configuration refresh.
What Problem This Solves
Fixes Codex-backed conversations choosing the native blocking question tool in Default mode even when OpenClaw's Ask User tool is callable. With native defaults, that tool rejects the question.
User Impact
Blocking questions use the callable OpenClaw tool by default. Explicit native-question opt-ins remain honored, restricted-tool policy still wins, and native async questions and MCP elicitations keep their existing behavior.
Why This Change Was Made
On main base
eea1c93a1d1cbc80b8fcb698bcc9246a9cfaba48,extensions/codex/src/app-server/run-attempt-start.ts:112forwards retained tool declarations without current executor availability.extensions/codex/src/app-server/thread-requests.ts:420does not select the working question tool for ordinary native-capable turns. A retained declaration alone cannot establish thatask_usercan execute.Pass actual executor availability into the existing thread-configuration owner. Reuse its preflight configuration snapshot to preserve authored native settings, including the winning enabled raw layer when the native typed response omits this key. Start, resume, fork, and supervised Continue share this policy. Existing effective-configuration fingerprints handle refresh; no additional state or fingerprint owner is introduced.
Evidence
48701f966b6f79e92791319914d4606856742b51. The watcher confirms older failing aggregate entries are superseded. This includes successful startup/native-config coverage and type-aware extension lint (165s CI job), covering the local setup gaps. Extension test jobs took 122–187s; the larger changed-test job took 278s.No live runtime/model or channel replay was performed. This lane uses focused production-boundary regressions and PR CI for broad validation, as requested.