Repository navigation
Adopt Support Desk 0.2.13 and retain PKCE grant controls - #77
Conversation
|
OpenRouter review posted ( |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
OpenRouter pull-request review
Verdict: issues
Scope: full-pr (full-pr)
Mode: initial
Commit: b35c05c7510d36b9b527bd6f4288947a703271e8
Judge: openai/gpt-5.6-luna
Cost: $0.2242 (lanes $0.2226 + judge $0.0016)
Lanes
openai/gpt-6.1-sol: ok (1 finding(s), 49.9s, 145457+2181 tokens (105905 cached), 5 tool round(s), via Azure, $0.14)z-ai/glm-5.3-flash: ok (2 finding(s), 573.4s, 2429364+39175 tokens (2347328 cached), 46 tool round(s), via Relace, $0.0782)
Findings
🔵 Issue 1 — Stale public Support Desk selection summary
src/data/components.ts:202 · nit · identified by openai/gpt-6.1-sol
Consumers of the generated composition catalog still receive a summary saying the Cloudflare reference host composes Support Desk 0.2.12, although this change selects 0.2.13. This leaves public package-selection information inconsistent with the manifest, health endpoint and updated composition documentation.
src/data/components.ts retains the old version in the Support Desk now field, and src/data/compile-catalog.ts:193 copies that field directly into the catalog. Update the summary alongside the dependency adoption.
A repository-wide search for 0.2.12 confirmed this is a current-selection statement, unlike the historical predecessor reference in docs/SUPPORT_CHECKER_UPGRADE.md and the frozen-fixture comment in worker/src/support-paid-checker-group.test.ts. The stack and roadmap pages also use this field when no fetched stage overrides it.
🔵 Issue 2 — Support Desk registry prose still says the reference host composes 0.2.12
src/data/components.ts:202 · nit · identified by z-ai/glm-5.3-flash
After this PR, the human/agent-facing component registry still states: The 0.2.12 package set is published on npm and composed by the Cloudflare reference host — but the host now composes 0.2.13 (package.json, pnpm-lock.yaml, worker/src/index.ts:981, and every docs/SUPPORT_*.md updated by this PR). A reader or agent consuming the site or the compiled MCP catalog is told the tested selection is 0.2.12, contradicting the lockfile the same page points at.
This prose is machine-published, not just a comment: src/data/compile-catalog.ts:193 emits now: component.now into the compiled catalog artifact served to agents, so the stale sentence flows into /catalog.json and MCP output. Every other version surface the PR touched was synchronized; this was the one missed instance.
I swept the repo for leftover 0.2.12/0.2.11 references (grep over all files): only three remain — this line, the correct historical docs/SUPPORT_CHECKER_UPGRADE.md:7 ("supersedes the host's 0.2.12"), and the historical fixture comment at worker/src/support-paid-checker-group.test.ts:167. No test pins the support-desk now prose (checked src/data/compile-catalog.test.ts), so nothing fails; the fix is a one-line prose bump to 0.2.13.
🔵 Issue 3 — 0.2.13 release commit SHA and producer-contract deep links are uncorroborated anywhere in the repo
docs/SUPPORT_CHECKER_UPGRADE.md:4 · nit · identified by z-ai/glm-5.3-flash
The doc now claims Support Desk 0.2.13 was "released from 114094de1f55a6b18ba1378cecafa91df877d735" and deep-links two producer files at that exact SHA (packages/ai/README.md, docs/UPGRADING.md, lines 90-91). If that SHA is not the commit that tag v0.2.13 points to, the doc's central provenance claim ("after strict public registry and release-artifact verification") is false and both producer-contract links resolve to a different tree than the verified release — in a document whose entire purpose is exact producer provenance.
I could not verify the hash: the review tools have no network access, and the SHA appears nowhere else in the repository (grep for 114094de matches only this doc's three lines), so there is no in-repo cross-check (no release-catalog fixture, script, or test pins it). The pattern matches the previous adoption (b41b301c… for 0.2.12), so this is a verification request, not evidence of an error: confirm the SHA equals the v0.2.13 tag commit (per the release link in the same paragraph) before merge.
|
Addressed review findings r1-1 and r1-2 in 23f37dd: removed the volatile Support Desk version/adoption claim from the fallback r1-3 was a verification request and is fulfilled by the public release evidence reply; both producer deep links target the verified v0.2.13 source commit. |
There was a problem hiding this comment.
OpenRouter pull-request review
Verdict: issues
Scope: latest-commit (commit-range)
Mode: verify
Commit: 23f37dd5a9c6500a337083a5b23b54ef885bc5a5
Judge: openai/gpt-5.6-luna
Cost: $0.1241 (lanes $0.1233 + judge $0.0008)
Lanes
openai/gpt-6.1-sol: ok (0 finding(s), 22.5s, 73806+683 tokens (47786 cached), 3 tool round(s), via Azure, $0.0843)z-ai/glm-5.3-flash: ok (1 finding(s), 167.3s, 834199+18925 tokens (739584 cached), 23 tool round(s), via Wafer, $0.0390)
Round 2 resolution
- 3 nit finding(s) from earlier rounds retired (severity floor for follow-up rounds is
risk). - Open findings after this round: 1 (0 bug-severity).
Findings
🟠 Issue 1 — bfcache restore does not reset mutationPending, so a stale in-flight mutation can leave all controls disabled
public/agent-access.js:422 · risk · identified by z-ai/glm-5.3-flash
The new pageshow recovery handler resets every transient field it touches (csrfToken, approval, currentGrant, both generations, all panels) but deliberately leaves mutationPending as-is and re-applies it via setMutationPending(mutationPending) before restarting the flow.
If the document was persisted by bfcache while a revoke (or device-approval) POST was still awaiting its response, mutationPending is still true at restore time. loadGrant's success path calls setMutationPending(mutationPending) rather than resetting it, and no other restore path resets it, so the restored page can show the grant panel with every consent/revoke button permanently disabled until the user reloads. The it.each(['owner', 'different-owner']) restore test only simulates a pending state read (a GET that never touches mutationPending), so the new suite does not cover a pending mutation restore.
What I checked against this: both submit handlers and the revoke handler run setMutationPending(false) in a finally block unconditionally, so any in-flight fetch that settles or rejects after restore heals the state; and the approve path's finally runs synchronously right after location.assign, so the approve navigation itself cannot persist with a stale true. That leaves only the case where a suspended page's fetch promise never settles at all — I found no direct evidence that real browsers behave that way (they typically settle or reject the fetch on suspend), so the reachable-trigger is unproven. I am reporting it as a risk because the handler's other resets show the intent of a full state reset, and resetting mutationPending = false before setMutationPending(false) would close the gap at no cost.
Proof gap: I could not establish from the code or available environment whether a bfcache suspension can leave a fetch promise permanently unsettled; if it cannot, this is unreachable.
There was a problem hiding this comment.
OpenRouter pull-request review
Verdict: clean
Scope: full-pr (full-pr)
Mode: verify
Commit: 23f37dd5a9c6500a337083a5b23b54ef885bc5a5
Judge: openai/gpt-5.6-luna
Cost: $0.2656 (lanes $0.2655 + judge $0.0001)
Lanes
openai/gpt-6.1-sol: ok (0 finding(s), 61.8s, 217632+2654 tokens (160470 cached), 5 tool round(s), via Azure, $0.20)z-ai/glm-5.3-flash: ok (0 finding(s), 531.3s, 1121002+57159 tokens (938117 cached), 17 tool round(s), via OpenInference, $0.0615)
Round 3 resolution
- 🤝
r2-1disputed — bfcache restore does not resetmutationPending, so a stale in-flight mutation can leave all controls disabled: RetainingmutationPendingis a technically justified unknown-write lock, not an omitted recovery reset. The persisted handler applies only to authorization-code pages withgrant_id; device approval is excluded, and the approved callback path releases its lock synchronously throughfinally. A pending revocation also releases the lock when its DELETE settles. A recovery GET cannot prove that a… - Open findings after this round: 0 (0 bug-severity).
No structured findings from the successful lane(s).
Adopt the five synchronized public Support Desk 0.2.13 packages and align the current host/recipe selection. The SD05 compatibility test now admits an explicitly approved provider-group checker with its separate purpose proof.
After approved PKCE consent redirects, browser history retains a locator-only link to the owner's grant controls. Back, bookmarks and bfcache recovery reread the current session and owned grant; the registered callback is unchanged. Agent Access remains pinned to 0.1.1, with no new API, permission or grant listing.
Remove the stale hand-maintained version claim from the catalog fallback while preserving compiled stage/status facts. Set the many-invocation high-history fixture's aggregate Vitest allowance to 300 seconds, based on observed finite local walkthroughs beyond 180 seconds. Every lifecycle/assertion, 50-call invocation cap, 100-parameter statement cap, production deadline and feature default remains unchanged.
Validation:
check, current build and all 56 affected UI/backend/catalog/eval tests across four files passed, zero skips.UI tests use synthetic navigation and actual pinned-AA Memory lifecycles. These results do not establish native-client, provider, deployed CPU or customer-activation acceptance.