Repository navigation
Closed
Labels
P0Emergency: data loss, security bypass, crash loop, or unusable core runtime.Emergency: data loss, security bypass, crash loop, or unusable core runtime.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.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:ux-release-blockerA non-technical user is blocked without terminal, logs, config, or support.A non-technical user is blocked without terminal, logs, config, or support.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Description
doctor --fix silently drops the plugins.allow entry for a bundled→externalized plugin (codex), unregistering the agent harness — and the gateway still reports healthy
Summary
After upgrading 2026.6.11 → 2026.7.1, the codex agent harness stopped being registered, so any agent bound to it fails every turn with:
GatewayClientRequestError: MissingAgentHarnessError: Requested agent harness "codex" is not registered.
Root cause: 2026.7.1 externalizes the codex harness into the @openclaw/codex plugin (previously effectively bundled/allowed as codex). During the upgrade, doctor/doctor --fix silently removed "codex" from plugins.allow because no installed plugin resolved to that id. With the fail-closed allowlist, the harness never loaded.
There are really two problems here:
- Silent allowlist strip. A config-reconciliation step deleted a user's
plugins.allowentry for a capability that was externalized, rather than migrating it (installing the replacement) or surfacing a blocking warning. The upgrade turned a working, configured capability into a silent removal. - Health check is green while a configured harness is missing. The gateway reported
running/ healthy, the port was open,plugins listlooked fine, and there were zero error log lines — yet no agent using the codex harness could run. Readiness/health does not account for "a configured agent's required harness failed to register." This is the more broadly-important issue: nothing short of an actual agent turn revealed the breakage.
Environment
- OpenClaw 2026.7.1 (
2d2ddc4), upgraded from 2026.6.11 (b2355ef) viaopenclaw update(npm install,stablechannel). - macOS (Darwin 24.6.0), Node 25.9.0, npm-global install at
/usr/local/lib/node_modules/openclaw, gateway under a launchd LaunchAgent. - Long-lived install (agents were bound to the
codexharness for many prior versions).
Reproduction
- On a pre-7.1 install with an agent using the codex harness and
"codex"present inplugins.allow, upgrade to2026.7.1viaopenclaw update. - Observe the gateway comes up "healthy" (port open,
openclaw statusshows running, no error lines). - Run a real turn against the agent:
openclaw agent --agent <main> --session-id smoke -m "ping". - It fails with
MissingAgentHarnessError: Requested agent harness "codex" is not registered.
Observed vs expected
Observed
plugins.allowdiff across the upgrade:"codex"present before, removed after (it was the only allowlist delta).plugins listeven prints the hint (so the tooling knows what happened):…but this is a soft config-warning, not surfaced as a blocking/health-affecting condition, and the allow entry was already deleted.- plugins.allow: plugin not installed: codex — install the official external plugin with: openclaw plugins install @openclaw/codex
Expected (any of):
- When a bundled plugin is externalized, the upgrade migrates it — installs
@openclaw/codex(pinned to the host cohort) and keeps the allow entry — rather than deleting the entry. - If it can't auto-install, it fails/warns loudly (non-zero doctor status, prominent banner) instead of silently pruning
plugins.allow. - Gateway readiness/health reflects missing harnesses: if a configured agent's harness isn't registered, health should be degraded/unhealthy, not green.
Workaround
# restore the allowlist entry
openclaw config set plugins.allow '[...,"codex",...]' --strict-json
# install the now-external plugin, pinned to host version to avoid skew
openclaw plugins install '@openclaw/codex@2026.7.1' --force --pin
openclaw gateway restart
# verify with an ACTUAL agent turn, not just health
openclaw agent --agent main --session-id smoke -m "ping"Impact
Silent, total loss of any agent on the externalized harness after a routine openclaw update, with a green health check masking it. Easy to ship "successfully" and only discover when a user's agent won't answer.
Reacted by clawsweeper
Metadata
Metadata
Assignees
Labels
P0Emergency: data loss, security bypass, crash loop, or unusable core runtime.Emergency: data loss, security bypass, crash loop, or unusable core runtime.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.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:ux-release-blockerA non-technical user is blocked without terminal, logs, config, or support.A non-technical user is blocked without terminal, logs, config, or support.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Priority
None yet
Activity
clawsweeper commentedon Jul 14, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed July 14, 2026, 8:29 AM ET / 12:29 UTC.
Summary
Keep open: release v2026.7.1 can turn a working Codex-backed agent into a fail-every-turn state during routine update. The linked open repair at #107285 addresses allowlist pruning, but current readiness semantics still do not detect a configured harness that never registered.
Reproducibility: yes. at source level: upgrade a pre-v2026.7.1 configuration containing
plugins.allow: ["codex"], run doctor repair, restart, and make a Codex-bound agent turn. The report provides a shipped-version reproduction and the current repair sequence explains the allowlist loss, although this review did not execute the live upgrade.Root-cause cluster
Relationship:
canonicalCanonical: #107226
Summary: This issue is the canonical combined upgrade-pruning and readiness report; one open PR fixes the pruning half, while older items cover narrower missing-plugin diagnostics or earlier migration variants.
Members:
fixed_by_candidate: fix(doctor): preserve allowlist entries for version-bound runtime plugins during stale config scan #107285 - This open PR narrowly preserves version-bound runtime plugin ids during stale-config repair but does not address Gateway readiness.superseded: fix(doctor): preserve allowlist entries for version-bound runtime plugins during stale config scan #107277 - This closed unmerged draft attempted the same allowlist preservation and was replaced by the narrower open pull request.partial_overlap: [Bug]:agentRuntime.id=codexcan be configured without the Codex plugin installed, causing harness-not-registered failures #81326 - This older issue covers a configured Codex runtime whose owner plugin is missing, but not the v2026.7.1 allowlist-pruning upgrade regression.partial_overlap: fix(plugins): surface missing Codex runtime plugin in doctor #81674 - This merged PR added doctor diagnostics for missing configured runtime plugins while explicitly leaving Gateway startup behavior unchanged.partial_overlap: 2026.5.12 update disables Codex plugin / drops runtime migration, causing "Requested agent harness codex is not registered" #82368 - This earlier update report has the same missing-harness symptom but concerns a different Codex config migration and plugin-disable path.Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.
Next step
Do not dispatch a duplicate repair: #107285 already owns the mechanical allowlist fix, while the remaining readiness contract requires maintainer direction.
Maintainer decision needed
/readyzand status degraded, or should readiness remain limited to Gateway startup infrastructure with doctor/update as the sole enforcement point?/healthzas liveness, but make/readyzand status degraded with actionable plugin-install guidance whenever a configured harness owner is unavailable.Review details
Best possible solution:
Preserve and install version-bound externalized runtime plugins during upgrade, then make
/readyzor an equally prominent startup diagnostic report configured-but-unregistered harnesses while keeping/healthzlimited to process liveness.Do we have a high-confidence way to reproduce the issue?
Yes at source level: upgrade a pre-v2026.7.1 configuration containing
plugins.allow: ["codex"], run doctor repair, restart, and make a Codex-bound agent turn. The report provides a shipped-version reproduction and the current repair sequence explains the allowlist loss, although this review did not execute the live upgrade.Is this the best way to solve the issue?
No, preserving the allowlist alone is not the complete best fix. It should be combined with verified upgrade installation or loud failure and a maintainer-chosen readiness signal for configured harnesses that remain unavailable.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
/readyzor status to account for configured harness registration requires a deliberate boundary between process liveness, startup readiness, and per-agent capability readiness.Codex review notes: model internal, reasoning high; reviewed against b4128978cdbd.
Label changes
Label justifications:
P0: A routine stable-channel update can leave configured agents completely unable to answer while Gateway health remains green and recovery requires terminal intervention.impact:message-loss: Every affected agent turn fails before producing a reply, including channel-routed and scheduled work.impact:auth-provider: The failure is caused by configured Codex runtime ownership and plugin registration no longer resolving after upgrade.impact:ux-release-blocker: Users must inspect configuration and run plugin-install, allowlist, restart, and live-turn commands to recover from a normal update.Evidence reviewed
What I checked:
codexagent runtime to the official@openclaw/codexinstallation path, confirming that doctor owns recovery of this externalized runtime plugin. (src/commands/doctor/shared/missing-configured-plugin-install.ts:70, b4128978cdbd)plugins.allowis not necessarily collected into that failed-install set before stale config repair runs. (src/commands/doctor/repair-sequencing.ts:160, b4128978cdbd)src/agents/harness/selection.ts:132, b4128978cdbd)src/cli/plugins-cli.runtime.ts, 9a11e76)/healthzas process liveness and/readyzas usable startup readiness while sidecars, channels, and configured hooks settle; it does not establish validation that every configured agent harness registered successfully. Public docs:docs/cli/gateway.md. (docs/cli/gateway.md, b4128978cdbd)src/commands/doctor/repair-sequencing.ts:160, 4dac7f2b0cd5)Likely related people:
src/cli/plugins-cli.runtime.ts,src/agents/harness-runtimes.ts,src/commands/doctor/shared/missing-configured-plugin-install.ts)src/agents/harness-runtimes.ts,src/commands/doctor/shared/missing-configured-plugin-install.ts)src/commands/doctor/shared/missing-configured-plugin-install.ts,src/cli/update-cli/post-core-plugin-convergence.ts)src/cli/plugins-cli.runtime.ts,src/commands/doctor/shared/configured-runtime-plugin-installs.ts,src/commands/doctor/shared/missing-configured-plugin-install.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.steipete commentedon Jul 15, 2026
The doctor/update half is fixed on
mainby #107285 (f638cbd0f909f747145b5c5851094e5bc942e920).Proof: the published
openclaw@2026.6.11upgrade-survivor scenario kept the Codex allow entry throughdoctor --fix, and final PR headd94d20c2d45671b423332b972f729c32d7b7f141passed exact-head CI.Keeping this issue open. Gateway
/readyzbehavior for a configured-but-unregistered harness remains a separate product/operational-contract decision; #107285 intentionally did not change readiness semantics.fix(plugins): keep official plugin config across bundled-to-external …
fix(plugins): keep official plugin config across bundled-to-external …