Repository navigation
fix(web): view-only connections lock the composer and show an amber notice - #47
Merged
Merged
Conversation
…otice The composer stayed editable on read-only connections, and the view-only note sat as small text under it. The editor is now read-only (including type-to-focus and paste-to-focus insertion), and the note is a warning banner tab above the composer like the other composer notices. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On a read-only (view-only) connection the composer stayed editable, and the only hint was small grey text under it saying the connection could only view threads.
Now the prompt editor is read-only on view-only connections, and that also covers type-to-focus and paste-to-focus, which inserted text programmatically and got past the editor's read-only flag. The note moved into the composer banner stack as an amber
warningtab ("View only — This connection can't send messages or answer requests."), like the reconnecting and update notices. It sits in theenvironmentgroup, so it stays visible when a question drawer is open.View-only is still detected the same way (read scope present, operate scope absent), so nothing flashes while connecting.
Screenshots (behind Cloudflare Access):
Verified in a dev server paired with
t3 pair --scope orchestration:read ...: the banner renders, and clicking the composer and typing, or typing elsewhere on the page, inserts nothing. Web typecheck, lint and format pass. Independent review (GPT 6.1 Sol, high) found no issues; the type-to-focus guard was added after that review.Done by Claude Opus 5.5 in Claude Code (T3 Code).
🤖 Generated with Claude Code