Conversation
Antigravity sends its file reads to T3 Code. The read check allowed only the primary folder and attachments, so a read in a folder the user added to the thread failed with "outside the session workspace". The ACP read callback now passes the extra roots of the active runtime policy, and Antigravity adds them to its allowed roots. The existing canonical path check still resolves symlinks before containment. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — Antigravity can read files in additional folders already granted by the active workspace policy. Existing path-containment and file-validation safeguards remain, and write access is unchanged. You can add or adjust custom eligibility rules. Learn more. |
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Other scenariosAll 64 scenario measurements match All 64 scenario measurements
Baseline: 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. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Problem
When a thread has more than one folder, Antigravity could not read files in the added folders. Antigravity sends its file reads to T3 Code, and the read check allowed only the primary folder and attachments. The read failed with "outside the session workspace", even though the agent was told about the folder.
Fix
The ACP read callback now passes the extra roots of the active runtime policy. Antigravity adds them to its allowed roots, next to the primary folder and attachments.
Tests
One new adapter test,
reads the folders the policy adds until they change or are removed:The test fails without the fix (
Path '…/note.txt' is outside the session workspace.) and passes with it.vp run check:changedpasses.Note
#43677 contains a similar line inside a larger change about attachment ownership. This PR is the small fix alone.
Implemented with Claude Fable 5.2 in Claude Code.
🤖 Generated with Claude Code