Repository navigation
Closed as not planned
Closed as not planned
Copy link
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm 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:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Description
Bug Report
OpenClaw version: 2026.5.19 (a185ca2)
@openclaw/codex version: 2026.5.19
OS: Linux 6.8.0-117-generic (x64)
Node: v22.22.2
Description
Any agent configured with model codex/gpt-5.5 in agents.list[] fails immediately with:
Error: Cannot find module './codex-mcp-config-D66js4SP.js'
The file codex-mcp-config-D66js4SP.js does not exist in the installed plugin's dist/ directory — not after fresh install, not after --force reinstall, not after running postinstall-bundled-plugins.mjs.
Steps to Reproduce
- Add an agent to
agents.listwith"model": "codex/gpt-5.5" - Restart gateway
- Send any message to that agent
- Error fires immediately on every request
Expected Behavior
Agent uses the Codex harness and responds via ChatGPT subscription (OAuth).
Actual Behavior
[diagnostic] lane task error: lane=session:agent:dudu:main durationMs=2601 error="Error: Cannot find module './codex-mcp-config-D66js4SP.js'"
[Embedded agent failed before reply: Cannot find module './codex-mcp-config-D66js4SP.js']
Notes
- The Codex bot harness (
@PinkRBCodexbotvia native Codex channel) works fine — only embedded agent model fails - Running
openclaw doctor --fixdoes not resolve - Reinstalling
@openclaw/codex@latest --forcedoes not resolve - File is simply absent from the
dist/bundle
Workaround
Set the agent model to openrouter/anthropic/claude-sonnet-4.6 — works normally but does not use the ChatGPT subscription.
Relevant log
2026-05-21T19:42:28.840+02:00 [diagnostic] lane task error: lane=session:agent:dudu:main durationMs=2561 error="Error: Cannot find module './codex-mcp-config-D66js4SP.js'
2026-05-21T19:42:28.848+02:00 Embedded agent failed before reply: Cannot find module './codex-mcp-config-D66js4SP.js'
Reacted by clawsweeper
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm 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:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Type
Fields
Priority
None yet
Activity
clawsweeper commentedon May 21, 2026
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.
Close as duplicate: package inspection ties the reported missing
codex-mcp-config-D66js4SP.jsto an older 2026.5.18 hashed chunk being referenced after a 2026.5.19 package swap, and the remaining durable update/chunk-retention policy is already tracked by #85844.Root-cause cluster
Relationship:
duplicateCanonical: #85844
Summary: The exact missing D66 chunk belongs to the prior 2026.5.18 package graph and becomes missing after a 2026.5.19 package graph is active, which is the stale hashed import/update lifecycle root cause tracked by the canonical issue.
Members:
canonical: Auto-update can leave running gateway with stale hashed bundle imports #85844 - Open issue tracking old in-memory module graphs referencing removed hashed chunks after auto-update or package-tree rotation.adjacent_distinct: Codex app-server emits notification:turn/started then goes silent; embedded run wedges for the full stuck-session recovery window #85251 - Shares Codex embedded-agent symptoms but primarily tracks app-server liveness/session recovery rather than the missing hashedcodex-mcp-configmodule.Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.
Canonical path: Keep #85844 as the canonical fix owner for stale hashed imports, with this report linked as Codex MCP startup evidence.
So I’m closing this here and keeping the remaining discussion on #85844.
Review details
Best possible solution:
Keep #85844 as the canonical fix owner for stale hashed imports, with this report linked as Codex MCP startup evidence.
Do we have a high-confidence way to reproduce the issue?
Yes, we have a high-confidence source/package reproduction for the reported hash transition:
openclaw@2026.5.18importscodex-mcp-config-D66js4SP.js, whileopenclaw@2026.5.19no longer ships that active import target. I did not run a live current-main gateway reproduction.Is this the best way to solve the issue?
Yes, closing this as a duplicate is the best cleanup path because the remaining fix is the broader stale hashed import/update lifecycle tracked by #85844. A one-off Codex MCP alias would not solve the same failure class across package swaps.
Security review:
Security review: No patch or security-sensitive report was under review; this is packaging/update-lifecycle bug triage.
AGENTS.md: found and applied where relevant.
What I checked:
loadCodexBundleMcpThreadConfigbehind a dynamic import of../agents/codex-mcp-config.js, so embedded Codex startup still depends on a generated dist chunk existing in the active package graph. (src/plugin-sdk/agent-harness-runtime.ts:245, f8675b3b70d3)extensions/codex/src/app-server/run-attempt.ts:638, f8675b3b70d3)../agents/codex-mcp-config.jsand still calls it from Codex startup, so the latest release does not prove this specific stale-chunk class is independently fixed. (src/plugin-sdk/agent-harness-runtime.ts:241, 844f405ac1be)openclaw@2026.5.18tarball includescodex-mcp-config-D66js4SP.jsand its agent-harness runtime imports that name, whileopenclaw@2026.5.19importscodex-mcp-config-Dglq4w-9.jsinstead. That makes the reported 2026.5.19 missing-D66 failure a stale old-module/new-package-tree shape.thread/startandthread/resumeacceptconfigoverrides, and Codex config ownsmcp_servers, so OpenClaw's MCP projection is a real app-server startup dependency rather than dead code. (../codex/codex-rs/app-server-protocol/src/protocol/v2/thread.rs:55, d66708232299)Likely related people:
codex-mcp-configprojection surface involved in the stale import. (role: feature-history contributor; confidence: high; commits: 1ee0d51e92f6; files:src/agents/codex-mcp-config.ts,extensions/codex/src/app-server/thread-lifecycle.ts)src/agents/codex-mcp-config.ts,src/agents/cli-runner/bundle-mcp-codex.ts)extensions/codex/src/app-server/run-attempt.ts,src/gateway/server-methods/update.ts,src/infra/update-startup.ts)src/infra/update-startup.ts)Codex review notes: model internal, reasoning high; reviewed against f8675b3b70d3.