Repository navigation
feat(codex): refresh hosted app inventory after setup - #132089
stevenlee-oai wants to merge 18 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated 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. |
|
Codex review: needs real behavior proof before merge. Reviewed September 4, 2026, 6:58 PM ET / 22:58 UTC. ClawSweeper reviewWhat this changesAdds owner/admin plugin-status and app-tool recheck commands, scoped setup links, runtime-context handling, documentation, and regression coverage within the Codex plugin. Merge readiness⛔ Blocked before merge - 8 items remain Keep open: the scoped recheck remains absent from current main, and the related PRs are unmerged prerequisites or dependents, not replacements. The earlier menu dead end is fixed, but two request-lifecycle defects and the acknowledged real-Codex proof gap still block merge. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s Codex plugin translates authenticated chat commands into requests to a selected Codex app-server. Status combines configured plugin policy with account and runtime inventory; recheck refreshes that inventory and reports the result without itself granting app access. flowchart TD
A[Chat command] --> B[Owner or admin check]
B --> C[Select account and runtime]
C --> D[Read plugin status]
D --> E{Eligible for refresh?}
E -->|Yes| F[Refresh hosted inventory]
E -->|No| G[Status and recovery guidance]
F --> G
Before merge
Findings
Agent review detailsSecurityNeeds attention: No supply-chain change was found, but the new scoped RPC wrapper permits a stale-account retry to reach hosted refresh I/O. PR surfaceSource +1014, Tests +1292, Docs +66. Total +2372 across 24 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep recheck in the Codex plugin, but reuse the canonical scoped RPC lifecycle with bounded cancellation and per-write account validity, preserving targeted cache reconciliation and truthful refresh-status wording. Do we have a high-confidence way to reproduce the issue? Yes, by source: an unanswered scoped RPC has no deadline, and an overload rejection followed by account/updated can retry before scope validation runs again. These paths were traced but not executed in this read-only review. Is this the best way to solve the issue? No, not as implemented: the targeted refresh helper is appropriate, but the new request wrapper duplicates an existing lifecycle while omitting its deadline and physical-write safeguards. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 6c63f6710637. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
Codex update: the reported menu dead end is fixed. Menu status opens configured-plugin selection; only selected eligible status offers Recheck app tools. Bare recheck is no longer advertised. Refresh stays on the scoped physical runtime and completion preserves unknown snapshot freshness and existing conversation policy. The new combined-stack Gateway/UI recording in the body shows selection, recheck retaining the old thread policy, explicit /new, blocked/unknown cases, and visible failure/recovery. Codex responses and tool results are controlled; no OAuth or live connector success is claimed. Direct sibling rust-v0.151.0 apps_processor/installed.rs confirms auth/feature gating and that the response does not expose refresh disposition. Current local tests pass; CI retains the unrelated main CLI guard failure. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
080c97a to
ec1863f
Compare
aed0148 to
738fe1a
Compare
eea5b01 to
c6e4287
Compare
Review-only linearization of 51cc5701d27c3705c2624b89132e4ab4fafe7e19. The existing upstream PR branch is unchanged.
Review-only linearization of a669f4946b62590bc721a0c02d31c975814f321b. The existing upstream PR branch is unchanged.
c6e4287 to
39fc1f1
Compare
Review-only linearization of 080c97a4379c3246cab40acec97a33772268ff84. The existing upstream PR branch is unchanged.
39fc1f1 to
9188dc4
Compare
Stack: layer 3 of 4 — upstream merge PR
Review in order 1 → 2 → 3 → 4; each layer depends on the previous row.
openclaw/openclaw:mainPR1 is reviewed upstream. PR2–4 use
stevenlee-oai/openclawfor predecessor-based review diffs; each review/upstream pair has the same head commit. All upstream PRs targetmain; 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 refresh(Refresh hosted apps) for connections completed outside an active Codex auth prompt. Previously, operators had no explicit account/runtime refresh command.app/installed {forceRefresh:true}withoutthreadId, thenapp/readfor returned apps. No plugin argument,app/list, or direct MCP probing.Codex already refreshes after auth-prompt acceptance; that path gets no duplicate refresh. Status remains an unforced read. The shared request timeout/retry repair is inherited from PR2.
Evidence
codex-plugins-refresh-live-github-v2.mp4
47 seconds; live Gateway/UI/Codex 0.151.0 and hosted GitHub.
enabled: true; callable: true.get_user_logincall succeeds.Same visible OpenClaw conversation, unchanged policy, no
/newor/reset. Status reads have account scope; the final model request starts a new native Codex thread. This does not prove refresh of an already-running native thread, service-account routing, or auth-prompt acceptance. The initial state is absent, not false/false.Captured at
d29de425dc91, before later status/menu simplification. Earlier integrated stack validation passed 226 tests at385bb3ac1dc9, including missing-config refresh, stale-cache rejection, preserved policy, and inherited request-lifecycle cases.Current integration is rebased onto main
850063498793. See upstream builds and tests; the recordings above predate this rebase.AI-assisted with Codex.