GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat(auth): allow passive terminal observation by juliusmarminge · Pull Request #9791 · pingdotgg/t3code Conversation
|
| Before | After |
|---|---|
The Android emulator check used only orchestration:read and terminal:read. It showed live output, no keyboard on tap, and no injected input in the host terminal history.
The browser check held terminal startup until the composer had focus and confirmed startup preserved it. Reopening a writable terminal focused its input; reopening an observer kept input read-only and unfocused.
The iPhone check kept the same shell running. Passive observation left its grid at 80×24; re-pairing with operation access resized it to the measured 47×41 without rotation or an external resize request. stty size confirmed 41 rows and 47 columns. These captures do not demonstrate the version-zero initialization regression.
Onboarding Install and Sign in now use the selected environment's terminal:operate grant and recheck it before queued terminal opening, pretyping, and cleanup. Revocation stops subsequent writes and close requests while preserving an accepted terminal and local Close, Continue, and Skip. Regrant permits an explicit retry without automatically reopening or retyping. Web/desktop resize callbacks now recheck the current grant immediately before dispatch, including when permission changes before React renders again.
Real browser verification compared 78c9ad7f with b053bc01, using the same test backend at 78c9ad7f and the same four scopes: orchestration:read, filesystem:read, terminal:read, and relay:read. Before, clicking Install ended with “Could not open the setup terminal.” After, both Install buttons are disabled with a permission explanation, while Continue and Skip remain available. Provider installation/authentication states came from owned server fixtures; this pass did not install a provider.
| Before: Install appears available | After: Install explains the missing permission |
|---|---|
The seven setup component cases went from six failures and one pass before the fix to seven passes. The resize regression failed before its fresh check and passed afterward; the targeted terminal run passed all 62 cases. Integrated verification at b053bc01 passed 165 web tests and web/mobile typechecks. The component tests cover revocation across queued setup work and resize dispatch; these races were not manually reproduced in the browser.
Model: GPT 6 Astra. Harness: Codex.
Note
terminal:read scope for passive terminal observationterminal:read authorization scope in contracts and server RPC maps, permitting terminal observation and metadata subscriptions without operate access.TerminalManager.observeStream and the terminalObserve WebSocket RPC to stream snapshots and live events of existing terminal sessions without starting or mutating the process.terminal:operate is granted.terminal:read when terminal:operate is selected and remove terminal:operate when terminal:read is cleared.useKnownTerminalSessions now returns null instead of an empty array when terminal metadata is unavailable or fails.Macroscope summarized b362e51.
Note
High Risk
Changes auth scopes for terminal subscriptions and splits read vs operate across server RPCs and all clients; clients with operate-only tokens lose metadata/event streams until re-paired with read scope.
Overview
Adds terminal:read and a passive terminal.observe stream so clients can watch history and live output without attach/write/resize/close. Server observeStream reuses the attach streaming path but only loads an existing snapshot—no spawn, restart, or PTY writes. Terminal event/metadata subscriptions now require read instead of operate alone.
Mobile and web gate the terminal UI on AuthTerminalReadScope / AuthTerminalOperateScope: read-only users observe sessions, see empty states when nothing exists, and get a readOnly surface (no keyboard accessory, paste, resize RPCs, or “open new terminal”). Native Android/iOS expose a readOnly prop that disables input, focus, and Ghostty-generated replies.
Refactors mobile lifecycle into useTerminalLifecycle (passive observers don’t reopen or exit-navigate), useTerminalGridSync (resize only when operate + running attachment), and useTerminalSurfaceBuffer (keeps displayed output across permission/null-buffer transitions). Terminal ID allocation can use a UUID suffix when session metadata isn’t readable, avoiding accidental default collisions.
Web/desktop mirror the same scope checks for drawer/panel splits, script runs, and keyboard shortcuts; ProjectScriptsControl treats run as optional when operate is missing.
Reviewed by Cursor Bugbot for commit 82749030fac892b58c63666761a49c8319ccfd7e. Bugbot is set up for automated code reviews on this repo. Configure here.
New Features
Bug Fixes
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: unavailable · PR result: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
1b83112 to
77bea7c
Compare
There was an error while loading. Please reload this page.
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This XXL change adds a new terminal-observation capability and splits terminal read versus operate authorization across the server, web, mobile, native modules, and pairing flows. Because it changes sensitive access policy, product scope defaults, and broad production runtime behavior, it requires human review. Not approved because:
No code changes detected at Review your spending limits in Billing settings, or comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
77bea7c to
755a0b0
Compare
755a0b0 to
a7693db
Compare
a7693db to
a9d5aa3
Compare
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
a9d5aa3 to
12ffc87
Compare
12ffc87 to
c391e46
Compare
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
c391e46 to
8cf3080
Compare
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Stale Bugbot comment from a previous run.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
New, split, and close shortcuts consumed the key before checking the grant, so a read-only observer pressing them got nothing at all. They now keep their native meaning, matching the toggle shortcut. The pairing form pairs terminal:read with terminal:operate: a client that can open shells but not list them allocates a fresh session per script run. Co-Authored-By: Claude Fable 5 <[email protected]>
Onboarding installs agents with the vendor script now, so the terminal regression asserts that command instead of the npm one. Co-Authored-By: Claude Fable 5 <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.