-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Bug]: Codex app-server deferred OpenClaw tools are advertised but tool_search resolves app connectors #99464
Copy link
Copy link
Closed
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.ClawSweeper needs more reporter information before it can verify this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.Decent issue quality, but reproduction details are still incomplete.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.
Description
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.ClawSweeper needs more reporter information before it can verify this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.Decent issue quality, but reproduction details are still incomplete.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.
Type
Fields
Priority
None yet
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
Codex app-server workers can be told that deferred OpenClaw dynamic tools are available through
tool_search, buttool_searchmay resolve a different connector universe instead of OpenClaw tools.Steps to reproduce
extensions/codex/src/app-server/thread-lifecycle.ts, includingDeferred searchable OpenClaw dynamic tools available: ... Use tool_search to load exact callable specs before use.sessions_spawn.tool_searchresult set.Observed incident evidence from worker
019f18dc-0080-7201-a969-4efa8dd87949, parent019f18d0-e106-7e02-a41e-3ff009b592bd, on PRopenclaw/openclaw#98186:tool_search("sessions_spawn")returned no tools.tool_search("sessions status send spawn OpenClaw session subagent")returned connector namespaces such as Calendly, Linear, and GitHub, not OpenClaw session tools.tool_search("lcm_grep recall conversation")returned GitHub and Google Drive connector namespaces, not LCM/OpenClaw tools.225shellexec_commandcalls and no GitNexus/OpenClaw code-intelligence calls.Expected behavior
If OpenClaw advertises deferred OpenClaw dynamic tools to a Codex app-server worker,
tool_searchshould resolve those exact OpenClaw tools, or the runtime should fail loudly and switch to a safe/direct tool-loading path.Actual behavior
The worker was instructed to use
tool_searchfor OpenClaw tools, buttool_searchresolved the wrong universe. The worker then fell back to raw shell and GitHub CLI inspection.OpenClaw version
OpenClaw
2026.7.1-beta.1 (2b4f94f).Operating system
macOS
26.4build25E246.Install method
Local OpenClaw install with Codex app-server plugin.
Model
Codex app-server worker using
gpt-5.5withxhighreasoning.Provider / routing chain
OpenClaw
sessions_spawnworker -> Codex app-server -> OpenAI/Codex model route.Additional provider/model setup details
The local Codex plugin reported version
2026.6.11. The incident worker was a spawned Codex worker, not a direct user turn.Logs
Redacted/summarized incident telemetry:
Screenshots, recordings, and evidence
Relevant source shape:
extensions/codex/src/app-server/thread-lifecycle.ts:1705says OpenClaw has dynamic tools for messaging, cron, sessions, media, gateway, and nodes.extensions/codex/src/app-server/thread-lifecycle.ts:1730advertises deferred searchable OpenClaw dynamic tools throughtool_search.extensions/codex/src/app-server/dynamic-tools.ts:356intentionally keeps OpenClaw session spawning searchable so native Codexspawn_agentremains primary for Codex subagents.src/agents/embedded-agent-runner/run/attempt.tool-search-run-plan.ts:93builds live allowed tool names from catalog tools when deferred tools are callable.sequenceDiagram participant OC as OpenClaw Codex app-server participant W as Codex worker participant TS as tool_search participant Shell as Raw shell fallback OC->>W: Developer instructions advertise deferred OpenClaw tools W->>TS: search "sessions_spawn" TS-->>W: no OpenClaw session tool W->>TS: search "sessions status send spawn OpenClaw session subagent" TS-->>W: Calendly/Linear/GitHub connector namespaces W->>Shell: falls back to rg/sed/gh polling Shell-->>W: large repeated outputs enter worker contextImpact and severity
Affected: Codex app-server workers spawned by OpenClaw when deferred OpenClaw tools are expected.
Severity: High. A small PR worker burned
23,868,003tokens in about 47 minutes after failing to discover the intended OpenClaw tools.Frequency: Observed in one fully captured incident; exact general frequency is not yet known.
Consequence: workers can miss native OpenClaw orchestration/code-intelligence surfaces and fall back to expensive raw shell/GitHub reads.
Additional information
Related issues that may share tool-surface ownership:
#85030MCP tools not injected intosessions_spawnsessions.#97911tools.denydoes not hideskill_workshopfrom Codex deferred tools.#98300deferred/tiered registration for model-facing tools.Suggested fix shape:
tool_searchcannot resolve advertised OpenClaw tools, either switch those tools to direct loading for the turn or fail loudly with a diagnostic.sessions_spawnis advertised buttool_search("sessions_spawn")does not resolve it.