Repository navigation
fix: allow dashboard reads through official plugins - #150309
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 17, 2026, 3:27 AM ET / 07:27 UTC (Revision 12). ClawSweeper reviewWhat this changesAllows authenticated dashboard conversations to read through verified official plugins while binding permission to the original turn and current session access. Merge readiness✅ Ready for maintainer review This remains a useful fix: current main and the latest release still lack dashboard admission for these reads. The earlier participation finding is resolved, the supplied authority-boundary proof is sufficient, and no actionable introduced defects remain. Priority: P2 Review scores
Verification
How this fits togetherThe Gateway admits dashboard messages and supplies private authorization to the agent’s message tool. Plugin dispatch carries that authorization through provider requests and retries before returning channel data. flowchart TD
A[Authenticated dashboard message] --> B[Chat and session admission]
B --> C[Original turn permission]
C --> D[Message tool and Gateway routing]
D --> E[Verified plugin read checks]
E --> F[Provider request and retries]
F --> G[Dashboard reply]
C --> H[Current caller and participation checks]
H --> F
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +204, Tests +345, Docs +7. Total +556 across 25 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep dashboard reads on the existing private turn-capability and provider-policy path, with current participation enforced through final I/O. Do we have a high-confidence way to reproduce the issue? Yes: current main rejects an authenticated dashboard read through an external official registration because it lacks native channel context; supplied baseline evidence shows that denial. This review did not execute a current-main reproduction. Is this the best way to solve the issue? Yes: the patch extends existing private admission and session authorization rather than adding a parallel plugin API, configuration switch, or persisted grant. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7885f84b1988. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (11 earlier review cycles; latest 8 shown)
|
6ff0de6 to
2c85b0f
Compare
c7f40a9 to
e8dcd2a
Compare
e8dcd2a to
ff4e866
Compare
|
Fixed: dashboard conversations can perform permitted reads through verified official plugins. |
Restore supported reads from authenticated dashboard turns through verified official plugins. Keep them bound to the original run and session while applying the existing chat, tool, account and provider permissions.
What Problem This Solves
A dashboard conversation can ask for messages from a Discord channel that its configured account is allowed to read. The request succeeds with bundled Discord but fails before provider traffic when the verified official plugin is registered externally. The host requires native channel conversation context even though the dashboard turn has no such context.
The same mismatch affects users whose
operator.writepermission already allowschat.sendand the message tool. Requiring administrator scope for these otherwise permitted reads does not match the existing command permissions.User Impact
Authenticated dashboard turns can use supported reads through verified official plugins under their existing chat, session participation, tool, account, destination, action, and requester permissions. Incognito sessions and fresh messages after reconnect retain their existing session rules. Providers that require native requester or workspace context continue to enforce it.
The permission belongs to the original admitted turn. Ordinary transport loss does not cancel that turn, while stopping the run, withdrawing required participation, or retiring caller authority prevents later reads. Internal re-entry, injected input, another run, and background work cannot borrow the permission. Scheduled jobs retain their own grants, including the account behavior delivered by #150278. No configuration, public SDK, wire protocol, or persisted-state format changes are introduced.
Why This Change Was Made
The authenticated Control UI handshake and external chat admission supply the source through the existing private message-action capability from #150166. It remains bound to the original run, agent, session key, and actual prepared session ID. The existing session authorization owner checks the expected original target before capturing its guard, then rereads current participation on subsequent assertions. This supports first-time session preparation without accepting a replacement session.
Local message execution and Gateway routing retain that assertion through preparation, provider requests, retries, and completion. Source-bound Gateway reads cannot replay an old result. The dispatcher consumes the permission only where host-eligible reads, adapter opt-in, and verified registration authority all agree. Private authorization is removed before plugin callbacks, and read-only tokens are withheld from unrelated writes. Integration with the landed SDK and account changes preserves their caller, account-selection, origin, and write-settlement guards.
Evidence
The tested source is
ee6b99a84ca3a0743260d7d50a60cedc5f42d078, tree92eccde3add15769c66e4d635b993a47ecbb6b96, integrated with the landed SDK and account changes. The current runtime, queued-request controls, and browser capture use this exact source. They exercise the real Gateway, signed clients, CLI child, generated MCP tool, and registered Discord provider with synthetic model decisions and provider data.chat.startup; the reply is visible once, with onechat.sendand no additional provider requests.session.members.remove. The original socket and MCP request remain open, and the run remains pending. A new send is denied withSESSION_PARTICIPATION_REQUIRED; the original queued read then rejects before another provider request. The contrasting reconnect control completes the original read after socket loss without a new turn.tsgo:corecommand pass. The preceding3cb5b804fb1c79cdbbfd0cae52eabf457173afe9composition passed 96 tests covering session authorization, Gateway account routing, hosted transport, registry/lifetime gates, and the missing-account credential boundary. Independent source, composition, and correction reviews are clean.e8dcd2a0f606debc36a14b0160b226a9513561e9proves the external administrator read and matched bundled/external non-administrator parity, denied read-only scopes and disabled actions, and Incognito under its required permission. Ate864971486041da16b63b48571eb880e169f246e, actualchat.abortstops the exact queued run with no second provider request. Its first abort guard remains unchanged.Recorded diagnostics from the current live controls:
{ "membershipWithdrawal": { "callerScopes": ["operator.read", "operator.write"], "requiredMembershipRemoved": true, "freshSendError": "SESSION_PARTICIPATION_REQUIRED", "originalRunStillPending": true, "originalSocketOpen": true, "originalMcpSignalAborted": false, "messageHttpRequests": 1, "retryHttpRequestsAfterRemoval": 0, "originalMcpError": "session is read-only for this connection", "settledQueueSize": 0, "settledActiveWorkers": 0 }, "transportReconnect": { "chatSendCount": 1, "messageHttpRequests": 2, "originalReadSucceeded": true, "settledQueueSize": 0, "settledActiveWorkers": 0 } }Both controls have zero unexpected provider errors. The membership case confirms the run remains pending with an immediate
agent.waitpoll before and after removal; its first message request received the 429. The original REST request is rejected at retry, and the MCP result contains the participation error.The browser-created account/default job preserves its definition and recorded
webchatorigin. Its separate scheduled Discord read correctly fails the origin restriction before provider I/O. The browser test passed; a post-run wrapper had expected missing origin. All remaining captured-data checks were completed against the observed origin, without altering the job or rerunning the browser. Original failed receipts are retained.Current-head CI passes after one rerun on the identical CI checkout. The original Slack fixture timeout remains recorded without an assumed cause. The completed exact-head review rates the contribution Platinum (4/6), with Diamond (5/6) proof confidence and no actionable findings.
Visual evidence
Dashboard send, completed read, and real history reload
dashboard-provider-reads-ee6b99a.webm
Visual verification
ee6b99a84ca3a0743260d7d50a60cedc5f42d078