Files
devvm/docs
w3cjandClaude Opus 5.5 aee099e52c fix(agentlogin): opencode OAuth logins devvm doesn't bind lose their tokens, and opencode's other files stay on the host
With network policy, an opencode OAuth login devvm doesn't bind (Copilot
Enterprise, a provider it doesn't know) reached the VM with its refresh
token, against network policy's promise that a VM never holds one, and
opencode's config folder's files that aren't settings, such as a .env,
were copied unredacted.

The VM's copy of opencode's auth.json now has devvm-redacted for such a
login's access and refresh tokens, and devvm warns
(opencode_login_withheld); API keys for providers devvm doesn't know stay
as they are, warned as before. File.VMCopy returns a VMFile (Data, Kept,
Withheld). With network policy, the VM doesn't get opencode's files that
are neither settings nor Markdown (withheld in sync.go), each named with
config_not_copied; AGENTS.md and other Markdown still go.

Tests: TestOpencodeUnboundOAuthWithheld (failing before), TestWithheld,
TestVMCopies's opencode_login_withheld, sync.txtar's opencode .env and
AGENTS.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:53:53 -07:00
..