Skip to content

fix(ui): keep Skills and Connectors accessible in read-only chats - #161289

Closed
stevenlee-oai wants to merge 1 commit into
mainfrom
dev/stevenlee/readonly-capability-browsing
Closed

stevenlee-oai wants to merge 1 commit into
mainfrom
dev/stevenlee/readonly-capability-browsing

Conversation

@stevenlee-oai

@stevenlee-oai stevenlee-oai commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

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

  • All 71 focused UI tests and 15 browser scenarios passed on the current-main candidate. They cover the rendered composer, read-only navigation and selected revisions, writable flows, and denied mutations.
  • Fresh independent correctness, maintainability, and test-structure reviews found no actionable issues on current main.
  • Inspected Playwright screenshots use an isolated mock Gateway. The read-only flow recorded no chat.send or sessions.patch requests. 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):

Browser suite Tests passed Local wall time CI file execution
chat-composer-capability-menu.e2e.test.ts 13 48.62 s 24.070 s
chat-skill-library.e2e.test.ts 2 33.34 s 6.443 s

The five-file UI run took 21.08 s wall. UI/E2E type checks, scoped lint, formatting, and diff checks passed. ClawSweeper also reviewed head 080452508968 with no actionable findings.

Before After
Read-only menu unavailable Skills and Connectors available while attachments remain disabled

CI status

The changed browser suites passed on 080452508968375be7d8ece0d16268066250866a, but the required gate is blocked by an unrelated initial-connect loading-skeleton failure:

initial-connect-splash.e2e.test.ts:322
loading composer stays inside the content area:
expected -500 to be greater than or equal to 0

That case deliberately withholds chat-page.ts until 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.

@clawsweeper

clawsweeper Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 29, 2026
@clawsweeper

clawsweeper Bot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 29, 2026, 12:57 PM ET / 16:57 UTC.

ClawSweeper review

What this changes

The 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 provenance

Possible 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
Reviewed head: 080452508968375be7d8ece0d16268066250866a

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused UI repair has direct before/after browser proof and relevant boundary coverage, with no concrete defect found in the patch.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after Playwright screenshots of the Control UI chat show the read-only composer and newly open capability menu in a browser with an isolated mock Gateway; the PR reports browser scenarios that browse a selected revision and observe no send or patch requests. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before/after Playwright screenshots of the Control UI chat show the read-only composer and newly open capability menu in a browser with an isolated mock Gateway; the PR reports browser scenarios that browse a selected revision and observe no send or patch requests. No stored-data contract changes.
Evidence reviewed 10 items Current main still blocks the menu: Current main passes the disabled composer state directly to the plus-menu trigger, so a read-only user cannot open it.
Introduced access split: The branch derives capability browsing from read access while retaining the separate send decision and excluding catalog sessions.
Attachment actions remain blocked: The opened menu renders disabled attachment items, and its selection handler does not dispatch an attachment action while attachments are disabled.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +15, Tests +13. Total +28 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 5 24 9 +15
Tests 2 33 20 +13
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 57 29 +28

Review metrics

None.

Root-cause cluster

Relationship: canonical
Canonical: #161289
Summary: This PR is the distinct browsing follow-up explicitly identified after the related composer-permissions PR merged.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best 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.

Labels

Label changes:

  • add P2: The branch repairs a bounded Control UI regression that prevents authorized users from inspecting chat capabilities.
  • add proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after Playwright screenshots of the Control UI chat show the read-only composer and newly open capability menu in a browser with an isolated mock Gateway; the PR reports browser scenarios that browse a selected revision and observe no send or patch requests. No stored-data contract changes.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after Playwright screenshots of the Control UI chat show the read-only composer and newly open capability menu in a browser with an isolated mock Gateway; the PR reports browser scenarios that browse a selected revision and observe no send or patch requests. No stored-data contract changes.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before/after Playwright screenshots of the Control UI chat show the read-only composer and newly open capability menu in a browser with an isolated mock Gateway; the PR reports browser scenarios that browse a selected revision and observe no send or patch requests. No stored-data contract changes.

Label justifications:

  • P2: The branch repairs a bounded Control UI regression that prevents authorized users from inspecting chat capabilities.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before/after Playwright screenshots of the Control UI chat show the read-only composer and newly open capability menu in a browser with an isolated mock Gateway; the PR reports browser scenarios that browse a selected revision and observe no send or patch requests. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after Playwright screenshots of the Control UI chat show the read-only composer and newly open capability menu in a browser with an isolated mock Gateway; the PR reports browser scenarios that browse a selected revision and observe no send or patch requests. No stored-data contract changes.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after Playwright screenshots of the Control UI chat show the read-only composer and newly open capability menu in a browser with an isolated mock Gateway; the PR reports browser scenarios that browse a selected revision and observe no send or patch requests. No stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • stevenlee-oai: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Patrick Erichsen: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • RoboClaw: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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.

@stevenlee-oai

Copy link
Copy Markdown
Contributor Author

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.

@RomneyDa
RomneyDa deleted the dev/stevenlee/readonly-capability-browsing branch October 22, 2026 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant