Skip to content

feat(codex): add scoped plugin readiness status - #132087

Closed
stevenlee-oai wants to merge 12 commits into
openclaw:mainfrom
stevenlee-oai:dev/stevenlee/cgp-02-plugin-readiness
Closed

stevenlee-oai wants to merge 12 commits into
openclaw:mainfrom
stevenlee-oai:dev/stevenlee/cgp-02-plugin-readiness

Conversation

@stevenlee-oai

@stevenlee-oai stevenlee-oai commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Stack: layer 2 of 4 — upstream merge PR

Review in order 1 → 2 → 3 → 4; each layer depends on the previous row.

Layer Incremental review Upstream PR → openclaw/openclaw:main
1. Setup links upstream #132046 #132046
2. Plugin status (this layer) fork #1 #132087
3. Hosted-app refresh fork #2 #132089
4. Catalog search/paging fork #3 #132158

PR1 is reviewed upstream. PR2–4 use stevenlee-oai/openclaw for predecessor-based review diffs; each review/upstream pair has the same head commit. All upstream PRs target main; the diffs for layers 2–4 currently include their prerequisites.

Merge targets are the upstream PRs, in order 1 → 4. After each lands, restack the remaining branches onto updated main. Fork PRs are review-only; merging them does not merge changes upstream.

What Problem This Solves

Adds /codex plugins status <name>@<marketplace> [page] to explain why one configured plugin's tools may be unavailable. It separates OpenClaw permission, Codex bundle state, and raw app enabled/callable flags, with account/bound-thread scope and five app rows per page.

  • Read app/read and app/installed {forceRefresh:false}; report missing/failed reads explicitly. No app/list, MCP probing, forced refresh, or configuration mutation.
  • Keep owner/admin checks and current main's session/auth guards. OpenClaw app-access changes take effect on the next message. Native plugins without hosted apps remain valid.
  • Keep list as unpaged configured inventory and available as catalog discovery. Bare/unqualified status returns usage without opening a runtime.
  • Bound shared command requests through acquisition/startup/RPC and cancel local waits/retries on expiry. Recheck account authority before physical sends/retries. Cancellation cannot undo work already sent.

Evidence

codex-plugin-status-live-permissions.mp4

34 seconds; live Gateway/UI/Codex 0.151.0. GitHub stays enabled: true; callable: true while OpenClaw permission is disabled, then restored. These account-scope flags are not fresh OAuth or tool-execution proof. Captured at 6b616760b018, before later command/menu simplification; use the qualified syntax above.

Optional 20-second timeout/recovery demo: real Gateway/UI with a controlled Codex process and synthetic credentials at integrated head 385bb3ac1dc9. A withheld response times out, clears busy state, and permits a successful retry in the same conversation/process; not live backend fault injection.

Qualified-status layout: real responses at 6b50a2bcc7c3; isolated disabled-plugin configuration is a fixture, private fields redacted.

92 runtime/request/client tests and scoped type/lint/format checks passed at 1691041ab973. PR4 records integrated stack validation; PR3 demonstrates reconnect → refresh → tool success.

Current integration is rebased onto main 850063498793. See upstream builds and tests; the recordings above predate this rebase.

AI-assisted with Codex.

@clawsweeper

clawsweeper Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review blocked

Automated review did not run, so no review verdict was produced.

Reason: The input-safety check rejected material in this revision. No detected value, path, or scanner output is reproduced here.

ClawSweeper will not retry this unchanged revision.

Next step: If this is a genuine credential, remove and rotate it. If it is an intentional test fixture, a maintainer must review and qualify it.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation extensions: codex size: XL labels Aug 28, 2026
@stevenlee-oai
stevenlee-oai marked this pull request as ready for review August 28, 2026 20:35
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: needs maintainer proof decision A ClawSweeper-authored PR needs a maintainer proof capture or override decision. labels Aug 28, 2026
@clawsweeper

clawsweeper Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed September 5, 2026, 6:38 AM ET / 10:38 UTC.

ClawSweeper review

What this changes

Adds owner/admin Codex plugin status with paginated app details, account and conversation context, and guarded ChatGPT links in status and installation replies.

Merge readiness

⛔ Blocked before merge - 3 items remain

Current main and v2026.9.1 still lack scoped plugin status, and the related open stack does not supersede this delivery PR.

Priority: P2
Reviewed head: a669f4946b62590bc721a0c02d31c975814f321b

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The implementation and focused coverage are useful, but authenticated behavior evidence remains incomplete.
Proof confidence 🦐 gold shrimp (3/6) Needs stronger real behavior proof before merge: The supplied combined-stack Gateway/UI recording uses controlled Codex responses, supporting presentation but not the scoped owner’s authenticated metadata/snapshot reads or a real auth-needed installation reply. Media could not be fetched because of reviewer-side DNS failure. Completed OAuth and an external tool call are not required to prove read-only status. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: The supplied combined-stack Gateway/UI recording uses controlled Codex responses, supporting presentation but not the scoped owner’s authenticated metadata/snapshot reads or a real auth-needed installation reply. Media could not be fetched because of reviewer-side DNS failure. Completed OAuth and an external tool call are not required to prove read-only status. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 12 items Pinned introduction boundary: Reviewed the merge-base-to-head changes, including the setup prerequisite; the fork review links were not substituted for this delivery PR’s delta. The raw head records parent 8bb3a91b09e2b5274d75cc40063b5d2f9b2083e4.
Entry point and scoped owner: The existing command handler supplies the new scoped context. Status checks owner/admin access before inventory requests; the context rechecks account, conversation, binding, and plugin settings and releases its client lease in finally.
Dependency signal and solution boundary: The new owner directly requests Codex account/read, plugin inventory, experimentalFeature/list, app/read, and app/installed. Existing plugin-inventory helpers are reused for identity selection; the admission inventory is not interchangeable because it filters disabled policies and can refresh cached inventory.
Findings None None.
Security None None.

How this fits together

OpenClaw’s Codex plugin handles chat commands and communicates with Codex’s app-server. This change combines local plugin settings with account, catalog, and tool-snapshot evidence to explain availability to operators.

flowchart TD
  A[Chat command] --> B[Owner or admin check]
  B --> C[Scoped Codex connection]
  D[Local plugin settings] --> C
  C --> E[Catalog and app metadata]
  C --> F[Existing tool snapshot]
  E --> G[Status and eligible app links]
  F --> G
Loading

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: The supplied combined-stack Gateway/UI recording uses controlled Codex responses, supporting presentation but not the scoped owner’s authenticated metadata/snapshot reads or a real auth-needed installation reply. Media could not be fetched because of reviewer-side DNS failure. Completed OAuth and an external tool call are not required to prove read-only status. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve merge risk (P1) - The captured branch has merge conflicts, and its new reset guidance predates shipped next-message policy refresh and current-main command-authority checks; the integrated behavior remains unvalidated.
  • Complete next step (P2) - Resolve the captured conflicts and add authenticated after-change status and installation-reply evidence. Screenshots or video are preferred when they show the result; terminal output or logs also count. Redact account identifiers, keys, IP addresses, phone numbers, and private endpoints. Update the PR body to trigger review; if needed, ask a maintainer to comment @clawsweeper re-review.
Agent review details

Security

None.

PR surface

Source +888, Tests +1049, Docs +47. Total +1984 across 21 files.

View PR surface stats
Area Files Added Removed Net
Source 13 1127 239 +888
Tests 7 1227 178 +1049
Docs 1 47 0 +47
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 21 2401 417 +1984

Review metrics

Metric Value Why it matters
Production versus test growth Production net +888; tests/support net +1049; docs +47 Counting extracted configuration logic as a move, the remaining production growth implements scoped diagnostics and guarded presentation without new configuration keys or stores.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep one Codex-owned inspection flow that reuses current command authority and accurately separates account metadata, cached callability, and next-message policy refresh.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep one Codex-owned inspection flow that reuses current command authority and accurately separates account metadata, cached callability, and next-message policy refresh.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this adds a diagnostic command rather than repairing a reproduced failure; current main and the latest release lack that command.

Is this the best way to solve the issue?

Yes in direction: the Codex plugin is the appropriate owner, and its existing admission inventory cannot replace read-only diagnostics for disabled plugins; integration must retain main’s newer authority and refresh contracts.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 8797856260ef.

Labels

Label justifications:

  • P2: This is a bounded operator-diagnostics improvement for the existing Codex plugin.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The supplied combined-stack Gateway/UI recording uses controlled Codex responses, supporting presentation but not the scoped owner’s authenticated metadata/snapshot reads or a real auth-needed installation reply. Media could not be fetched because of reviewer-side DNS failure. Completed OAuth and an external tool call are not required to prove read-only status. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • proof: 🎥 video: Contributor real behavior proof includes video or recording evidence. The supplied combined-stack Gateway/UI recording uses controlled Codex responses, supporting presentation but not the scoped owner’s authenticated metadata/snapshot reads or a real auth-needed installation reply. Media could not be fetched because of reviewer-side DNS failure. Completed OAuth and an external tool call are not required to prove read-only status.
  • proof: telegram-e2e: This PR needs Telegram Test Server proof with the repository E2E skill. The portable Codex command changes Telegram-visible status replies, pagination actions, and hosted-app links.

Evidence

What I checked:

  • Pinned introduction boundary: Reviewed the merge-base-to-head changes, including the setup prerequisite; the fork review links were not substituted for this delivery PR’s delta. The raw head records parent 8bb3a91b09e2b5274d75cc40063b5d2f9b2083e4. (a669f4946b62)
  • Entry point and scoped owner: The existing command handler supplies the new scoped context. Status checks owner/admin access before inventory requests; the context rechecks account, conversation, binding, and plugin settings and releases its client lease in finally. (extensions/codex/src/command-plugins-runtime.ts:105, a669f4946b62)
  • Dependency signal and solution boundary: The new owner directly requests Codex account/read, plugin inventory, experimentalFeature/list, app/read, and app/installed. Existing plugin-inventory helpers are reused for identity selection; the admission inventory is not interchangeable because it filters disabled policies and can refresh cached inventory. (extensions/codex/src/command-plugins-readiness.ts:150, a669f4946b62)
  • Direct Codex metadata contract: Personally inspected the sibling source at rust-v0.151.0. app/read limits requests to 100 IDs, loads thread-aware configuration, gates on hosted-app support and authentication, and reads connector metadata. Repository ownership was verified through the local cache’s origin URL. (codex-rs/app-server/src/request_processors/apps_processor/read.rs:18, 78c290807ce7)
  • Direct Codex snapshot and identifier contracts: app/installed with forceRefresh false uses the existing account runtime snapshot and applies effective configuration; absence produces an empty result, not evidence of completed or failed OAuth. Also inspected thread configuration loading, experimental-feature pagination, and PluginId validation, including dotted plugin names. (codex-rs/app-server/src/request_processors/apps_processor/installed.rs:64, 78c290807ce7)
  • Regression coverage and review continuity: Read readiness, runtime, navigation, management, and discovery tests. They cover qualified aliases, denied callers, unsafe destinations, missing metadata, pagination, and delayed responses after account/session/policy changes. The previous alias finding is addressed. Tests were inspected, not executed. (extensions/codex/src/command-plugins-readiness.test.ts:366, a669f4946b62)

Likely related people:

  • Kimi Yu: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vyctor H. Brzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Attach authenticated plugin-status output and an actual auth-needed installation reply from the reviewed or refreshed branch.
  • Resolve the captured conflicts while preserving current-main account/session authority and next-message plugin-policy refresh, then validate the integrated behavior.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (5 earlier review cycles)
  • reviewed 2026-08-28T20:56:48.988Z sha eb2ab8239d4d815d4594a38d8d12ae10070a05c0 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-29T19:17:13.070Z sha eb2ab8239d4d815d4594a38d8d12ae10070a05c0 :: needs real behavior proof before merge. :: [P1] Normalize curated aliases before constructing follow-up commands
  • reviewed 2026-09-01T19:40:07.668Z sha 8bb3a91b09e2b5274d75cc40063b5d2f9b2083e4 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-01T20:01:23.423Z sha a669f4946b62590bc721a0c02d31c975814f321b :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-04T23:03:17.196Z sha a669f4946b62590bc721a0c02d31c975814f321b :: needs real behavior proof before merge. :: none

@clawsweeper clawsweeper Bot added clawsweeper-recovery-stuck merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed proof: 🎥 video Contributor real behavior proof includes video or recording evidence. clawsweeper-recovery-stuck rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. status: needs maintainer proof decision A ClawSweeper-authored PR needs a maintainer proof capture or override decision. labels Aug 29, 2026
@stevenlee-oai

Copy link
Copy Markdown
Contributor Author

Codex update: canonical identity now drives follow-up commands, including qualified curated aliases; the reported double-@ path has regression coverage. Argumentless status opens the existing configured-plugin chooser. Hosted actions use the same scoped readiness owner, including installation-result actions; local access, catalog restrictions, hosted support, and conversation callability remain separate.

The body now has current combined-stack Gateway/UI media and validation. The unused test-helper export found by CI was removed at a669f4946b6; 55 management tests and the exact Knip all-exports check pass. Fresh CI is running. No persistent schema or embedding change was added.

Direct sibling Codex source inspection included rust-v0.151.0 apps_processor/read.rs and installed.rs (auth/feature gates and snapshot semantics). The recording uses controlled responses, not live OAuth.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Sep 4, 2026
@stevenlee-oai
stevenlee-oai force-pushed the dev/stevenlee/cgp-02-plugin-readiness branch from a669f49 to f0bf984 Compare September 8, 2026 22:00
@openclaw-barnacle openclaw-barnacle Bot added app: android App: android app: web-ui App: web-ui gateway Gateway runtime agents Agent runtime and tooling labels Sep 8, 2026
@openclaw-barnacle openclaw-barnacle Bot added triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. and removed triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Sep 9, 2026
@openclaw-barnacle openclaw-barnacle Bot added the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Sep 9, 2026
Review-only linearization of 51cc5701d27c3705c2624b89132e4ab4fafe7e19.
The existing upstream PR branch is unchanged.
@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Sep 9, 2026
@stevenlee-oai
stevenlee-oai force-pushed the dev/stevenlee/cgp-02-plugin-readiness branch from 1691041 to b875820 Compare September 9, 2026 21:29
@stevenlee-oai

Copy link
Copy Markdown
Contributor Author

Codex: Closing as superseded by #132158, merged to main in a37eb17. This PR's feature commits are included there, so no separate merge is needed. Keeping this PR and its branch as review history.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: android App: android app: web-ui App: web-ui docs Improvements or additions to documentation extensions: codex gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants