Repository navigation
fix(ui): keep Skills and Connectors accessible in read-only chats - #161289
stevenlee-oai wants to merge 1 commit into
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 29, 2026, 12:57 PM ET / 16:57 UTC. ClawSweeper reviewWhat this changesThe Control UI chat composer lets read-only users open its Skills and Connectors menu while keeping message entry, attachments, and capability changes permission-gated. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review This follow-up remains necessary: current main disables the entire plus menu in read-only chats, while the proposed branch restores capability browsing without an identified write-access regression. The related composer-permissions PR merged, but explicitly left this behavior for the follow-up. Priority: P2 Review scores
Verification
How this fits togetherThe Gateway supplies operator scopes and session state to the Control UI chat pane. The pane uses them to render the composer and capability menu, whose read and write actions then call separately authorized Gateway methods. flowchart LR
A[Gateway scopes and session] --> B[Chat composer access]
B --> C{Capability browsing allowed?}
C -->|Yes| D[Skills and Connectors menu]
D --> E[Gateway read methods]
B --> F[Message and attachment controls]
D --> G[Separately checked write actions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +15, Tests +13. Total +28 across 7 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep capability inspection available to users with read access while send and attachment controls honor composition access and Gateway authorization remains the owner of every read or write. Do we have a high-confidence way to reproduce the issue? Yes. On current main, a chat with read scope but no send access disables the plus-menu trigger; source and the inspected before screenshot establish the path, although this reviewer did not execute it. Is this the best way to solve the issue? Yes. The patch separates menu browsing from composition in the existing UI access owner and keeps attachment and mutation guards at their existing boundaries. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against cfc1f6b3f682. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Codex: Closing per maintainer direction. The intended workflow can use a writable thread to access these controls, so keeping the full composer disabled is acceptable. |
Related: #160977
What Problem This Solves
Disabling the composer also disabled its plus menu, preventing read-only users from inspecting session Skills and Connectors.
User Impact
Authorized users can browse Skills, read selected skill revisions, and inspect Connectors while message entry, Send, and attachment actions remain disabled when sending is unavailable.
Why This Change Was Made
The existing composer-access owner now distinguishes capability inspection from composition. Attachment controls remain disabled independently, and capability/skill mutations retain their existing authorization checks. Catalog and suggestion composer behavior stays unchanged.
Evidence
chat.sendorsessions.patchrequests. The same evidence is attached in the originating chat.Measured with
pnpm test <file> --maxWorkers=1(wall time includes the UI build and browser startup):chat-composer-capability-menu.e2e.test.tschat-skill-library.e2e.test.tsThe five-file UI run took 21.08 s wall. UI/E2E type checks, scoped lint, formatting, and diff checks passed. ClawSweeper also reviewed head
080452508968with no actionable findings.CI status
The changed browser suites passed on
080452508968375be7d8ece0d16268066250866a, but the required gate is blocked by an unrelated initial-connect loading-skeleton failure:That case deliberately withholds
chat-page.tsuntil after the assertion, so this PR's composer/menu code has not executed. The failed shard had 403 passing tests and this one failure; fail-fast canceled seven other jobs. The skill-library file finished successfully before its job was canceled.A bounded local replay of the entire failing file in its original test order passed all 13 cases (39.32 s wall). The full 81-file CI shard was not replayed locally, and the underlying resize/geometry failure remains unconfirmed. This passing replay does not establish a fix. GitHub reports
MERGEABLE/BLOCKED: no conflict, but required CI is not green.