Skip to content

fix(codex): enable configured apps in service sessions - #115433

Merged
kevinlin-openai merged 3 commits into
openclaw:mainfrom
kevinslin:dev/kevinlin/service-account-plugins-current
Jul 29, 2026
Merged

kevinlin-openai merged 3 commits into
openclaw:mainfrom
kevinslin:dev/kevinlin/service-account-plugins-current

Conversation

@kevinslin

@kevinslin kevinslin commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Related: #115075

What Problem This Solves

Fixes an issue where service-account-backed Codex sessions could discover an installed plugin app but could not call it when the app was disabled in the base runtime and enabled only by the gateway's configured plugin policy.

Why This Change Was Made

The Codex plugin now reads committed runtime inventory through app/installed, enriches it with app/read, provisionally enables policy-selected base-disabled apps in thread-scoped config, and attests that those apps are callable before any turn or durable thread ownership. Explicit app-specific Codex config denials remain authoritative.

User Impact

Operators can use configured Codex plugin apps such as Linear from service-account gateways without globally enabling every installed app. Missing or non-callable apps fail closed before a model turn.

Evidence

  • Compared against Codex rust-v0.145.0 app-server protocol and runtime implementation.
  • git diff --check: passed.
  • node --check on the changed thread-config and lifecycle TypeScript files: passed.
  • Mandatory autoreview: clean after repairing supervised pre-turn cleanup.
  • Live pre-fix proof on the dxclaw service-account runtime:
    • app/installed returned the Linear app in the base inventory.
    • app/read returned Linear metadata and tools including list_issues.
    • The gateway turn reported LINEAR_READ_UNAVAILABLE because the app was not callable in the thread.
  • Focused Vitest was not run locally because this linked worktree has no compatible dependency tree; exact-head remote build/CI is the dependency-hydrated proof path.

Real behavior proof

  • Behavior or issue addressed: policy-selected plugin apps were not enabled in service-account-backed Codex threads when the base app inventory reported them disabled.
  • Real environment tested: tenant dxclaw on a0s, connected to DevBox clawdx on devbox-2, remote Codex 0.145.0 app-server, and the real Linear connector.
  • Exact steps or command run after this patch: built and deployed OpenClaw commit 6e9771eb286b55c1aacefa5f64ac36d88c5a2bb2 with applied deploy -s claw-gateway -e staging --wait --local-deploy --filter metadata.name=openclaw-gateway-dxclaw, then sent a read-only Slack request to dxclaw to call Linear list_issues.
  • Evidence after fix: deployed gateway image digest sha256:afe2c5bf419b9d04370546042574015d99ad839925a4a1c560f83f78cdcc3282; Slack parent 1785280801.503179; dxclaw reply 1785282122.192349; gateway logs recorded the matching inbound app mention and successful Slack reply delivery.
  • Observed result after fix: {"status":"LINEAR_READ_OK","connector":"linear","tool":"list_issues","firstIdentifier":"IDP-4021"}.
  • What was not tested: destructive Linear writes and approval UI were omitted because the unchanged deployed policy uses auto, not ask; Google Calendar was omitted because it is not enabled; focused local Vitest was not run because the linked worktree has no dependency tree and local dependency reconciliation is prohibited for this workflow.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation extensions: codex size: XL maintainer Maintainer-authored PR labels Jul 28, 2026
@kevinlin-openai
kevinlin-openai marked this pull request as ready for review July 29, 2026 00:13
@kevinlin-openai
kevinlin-openai merged commit 310396f into openclaw:main Jul 29, 2026
109 checks passed
@kevinlin-openai

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 29, 2026
* fix(codex): attest configured plugin apps before turns

* fix(codex): tighten plugin thread config

* fix(codex): expose account app admission wrapper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation extensions: codex maintainer Maintainer-authored PR size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants