Repository navigation
fix(codex): deliver task-suggestion tools to Codex-harness runs with calibrated guidance - #121568
Merged
Merged
Conversation
…calibrated guidance - forward taskSuggestionDeliveryMode through the Codex app-server dynamic tool build (same sibling-harness omission class previously fixed for clientCaps); spawn_task/dismiss_task silently never existed for GPT-backed sessions - regression test asserting the forward, mirroring the existing clientCaps case - spawn_task/dismiss_task descriptions rewritten with usage calibration: when to flag, when not to, scope-vs-flagging, prose-is-lost, operator-phrasing bridge, prompt self-containment, git-checkout cwd, registry ephemerality; param descriptions state where each field renders Release-note context: GPT-backed sessions can now create suggested-task cards (the tools were silently absent on the Codex harness), and the tools carry much clearer model-facing guidance.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 10, 2026 11:04
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 11, 2026
…calibrated guidance (openclaw#121568) - forward taskSuggestionDeliveryMode through the Codex app-server dynamic tool build (same sibling-harness omission class previously fixed for clientCaps); spawn_task/dismiss_task silently never existed for GPT-backed sessions - regression test asserting the forward, mirroring the existing clientCaps case - spawn_task/dismiss_task descriptions rewritten with usage calibration: when to flag, when not to, scope-vs-flagging, prose-is-lost, operator-phrasing bridge, prompt self-containment, git-checkout cwd, registry ephemerality; param descriptions state where each field renders Release-note context: GPT-backed sessions can now create suggested-task cards (the tools were silently absent on the Codex harness), and the tools carry much clearer model-facing guidance.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Two defects found while live-testing the task-suggestion feature with a real OpenAI-backed web session against a dev gateway:
spawn_task/dismiss_tasknever existed for Codex-harness runs (P1). The Codex app-server tool builder forwards run facts intocreateOpenClawCodingToolsbut droppedtaskSuggestionDeliveryMode— the exact sibling-harness omission class already fixed there once forclientCaps(the comment above the fix line documents that precedent). Every GPT-backed session silently lacked the tools while Anthropic-backed sessions (native embedded runner, which forwards the mode) had them. Proven live: a Control UI session ongpt-5.6-lunaanswered "None" when asked to list tools containing "task"; after the one-line forward it answersspawn_task, and instrumented runs show the mode arriving as"gateway"at tool construction.Why This Change Was Made
The tool advertises itself exclusively through its schema (deliberately — it is gated per session, so static prompt text would be hallucination bait). That makes the description the entire model-facing product surface. This PR ports the calibration that the equivalent Claude Code tool ships: when to use it (work you were not asked to do, surfacing along the way), when not to (vague code smells, low-confidence hunches), that scope requests apply to doing the work rather than flagging it, that a follow-up described only in prose is lost, the lexical bridge from operator phrasing ("flag it as a follow-up", "note that for later") to the tool, prompt self-containment, the git-checkout
cwdrequirement, and registry ephemerality.dismiss_taskgains the replace pattern (spawn the better card first, then dismiss) and the pending-only rule. Parameter descriptions now say where each field renders (card title/session name, card summary, expander).User Impact
gpt-5.6-sol: given a natural request ("if you spot anything else worth doing, put it on a suggested-task card"), the model completed the scoped work, calledspawn_taskwith the correct repocwd, and the card rendered in the Control UI ("Remove the legacy sum alias") — screenshot below.Evidence
spawn_task; instrumented delivery-mode traceadmission "gateway" → reply run "gateway" → runner dispatch "gateway" → tool build nullpre-fix,"gateway"end-to-end post-fix; final natural-language run produced a live card (screenshot embedded).extensions/codex/src/app-server/dynamic-tool-build.test.tsmirroring the existingclientCapssibling-forward regression: the Codex tool builder must forwardtaskSuggestionDeliveryModeintocreateOpenClawCodingTools.src/agents/tools/task-suggestion-tools.test.tsgreen (schema/param behavior unchanged; descriptions only).Screenshots
gpt-5.6-sol completing scoped work and recording the out-of-scope TODO as a live suggested-task card