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): separate filesystem read and write permissions by juliusmarminge · Pull Request #9788 · pingdotgg/t3code Conversation
|
| Before | After |
|---|---|
Earlier iPhone E2E used the same dirty worktree with file access granted and denied. These captures predate final integration:
| Before: missing permission reported as an empty worktree | After: access denial explained |
|---|---|
Model: GPT 6 Astra. Harness: Codex.
Note
High Risk
Changes authentication scope requirements and authorization for file reads, writes, diffs, and asset URLs across server and all clients; misconfiguration or stale grants can block core workspace features.
Overview
Introduces filesystem:read and filesystem:write as first-class OAuth grant scopes and wires them through server RPC authorization, replacing orchestration/review scopes for direct host file operations and local diff preview. review:write is retired for new token requests; host workspace/media asset minting now requires filesystem:read, while attachments keep existing rules.
Web, mobile, and desktop clients gate browsing, file trees, previews, composer path search, asset URLs, media menus, and git/worktree review sections on resolveFilesystemReadAccess, showing loading/denial states instead of firing unauthorized queries or leaking cached host diffs. Losing filesystem:write stops autosave and keeps unsaved drafts across closed previews until write access returns; plan save and file editor UI reflect read-only mode.
Pairing/token flows and CLI scope flags now use the unified AuthGrantScope set; server tests cover scoped WS file read/write and asset URL behavior.
Reviewed by Cursor Bugbot for commit f6761daa8547a8a0e07f1d8aa2f7c6f0b0c3aea9. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
read and write scopes across server, web, and mobileresolveFilesystemReadAccess resolver in filesystem.ts that distinguishes pending, denied, and granted states from catalog, connection, and session dataorchestration:read/review-write to filesystem:read/filesystem:write; assetsCreateUrl in ws.ts now requires filesystem:read for workspace-file and media-file resourcesfilesystem:write is revoked, drafts stay pending, and auto-recover once write access returnsfilesystem:read/filesystem:write instead of review-writeRPC_REQUIRED_SCOPES reassignment removes review-write; existing sessions or pairing tokens that relied on review-write for file/diff access must now be granted filesystem:read or filesystem:writeMacroscope summarized 7d9a81c.
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.
c80d93e to
3b96a67
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.
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This PR changes the authentication model for filesystem reads and writes and propagates new authorization behavior across server, web, and mobile file, diff, search, media, and save paths. It also expands standard client default grants, making this a security-sensitive product-default change. 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.
3b96a67 to
fb4489d
Compare
fb4489d to
d7df773
Compare
There was an error while loading. Please reload this page.
bfb151c to
eec5dfb
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.
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.
38e8814 to
4b73b2d
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.
There was an error while loading. Please reload this page.
4b73b2d to
bef54b1
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.
bef54b1 to
c1d166f
Compare
The same resolveFilesystemReadAccess block was inlined in four files. Using the existing useFilesystemReadAccess hook drops the copies and stops useAssetUrls and the read-only editor banner from treating a pending grant as a denial. Co-Authored-By: Claude Fable 5 <[email protected]>
The rebase left the fixture's frame tracker declared twice, a loading state on a removed icon, and the media hook private while its test drives it directly. 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.