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]>
This commit is contained in:
w3cjandClaude Opus 5.5 committed 2026-11-04 14:53:53 -07:00
1 parent 7dba353351
commit aee099e52c
12 files changed
+137 -30

No files matched your search

+2 -2
View File
@@ -207,7 +207,7 @@ Codex's login is `~/.codex/auth.json` and opencode's is `~/.local/share/opencode
- For Codex, those are OpenAI's hosts, `api.openai.com`, and `chatgpt.com` for a ChatGPT login.
- For opencode, they're the hosts of Anthropic, OpenAI and OpenRouter keys, and of OpenAI and GitHub Copilot logins, but not Copilot Enterprise.
Each VM's placeholders end in its own random value, so no other VM's placeholder gets its secrets. devvm reads a login file only when it's a regular file, so a FIFO or a device in its place can't hold devvm. devvm refreshes OAuth logins on the host, one lookup at a time, and writes them back to the host's file, so a VM never holds a refresh token. A refresh that has started finishes and is written back even when the request that needed it ends, because OpenAI may already have replaced the refresh token. When a refresh fails, or the host's login no longer has what a binding names, the proxy puts nothing in, and its own log says to log in again with the agent on this machine (`codex_refresh_failed`, `opencode_refresh_failed`, `codex_no_key`, `codex_no_chatgpt`), or names the login file it couldn't read (`login_read_failed`). devvm copies logins it doesn't know as they are, and warns you (`codex_login_kept`, `opencode_login_kept`). If devvm can't make the VM's copy of a login, it stops the VM's setup (`login_copy_failed`).
Each VM's placeholders end in its own random value, so no other VM's placeholder gets its secrets. devvm reads a login file only when it's a regular file, so a FIFO or a device in its place can't hold devvm. devvm refreshes OAuth logins on the host, one lookup at a time, and writes them back to the host's file, so a VM never holds a refresh token. A refresh that has started finishes and is written back even when the request that needed it ends, because OpenAI may already have replaced the refresh token. When a refresh fails, or the host's login no longer has what a binding names, the proxy puts nothing in, and its own log says to log in again with the agent on this machine (`codex_refresh_failed`, `opencode_refresh_failed`, `codex_no_key`, `codex_no_chatgpt`), or names the login file it couldn't read (`login_read_failed`). devvm copies logins it doesn't know as they are, and warns you (`codex_login_kept`, `opencode_login_kept`). An opencode OAuth login that devvm doesn't bind, such as Copilot Enterprise's or one for a provider devvm doesn't know, is the exception: its access and refresh tokens become `devvm-redacted` in the VM's copy, so opencode in the VM can't use that login, and devvm warns you (`opencode_login_withheld`). If devvm can't make the VM's copy of a login, it stops the VM's setup (`login_copy_failed`).
[Coding agents](../using/coding-agents.md) lists which files each agent shares.
@@ -233,7 +233,7 @@ With network policy, devvm also takes the keys out of the VM's copies of the age
- In a URL anywhere in the file, its user info and its secret-looking query values and path segments.
- In every list, the arguments that MCP servers' arguments in `~/.claude.json` lose: the value after a secret-named flag, such as `--api-key X`, the value of `--token=X`, and any that looks like a key.
Values that only name where a secret is stay as they are. Those are an environment variable's name (`env_key = "OPENAI_API_KEY"`), `{env:X}`, `${X}` and a path. devvm refuses a file that doesn't parse as its format, instead of copying any of it unread, so the VM doesn't get that file (`config_not_copied`). An MCP server or a provider that needs one of those keys in the VM has to get it another way.
Values that only name where a secret is stay as they are. Those are an environment variable's name (`env_key = "OPENAI_API_KEY"`), `{env:X}`, `${X}` and a path. devvm refuses a file that doesn't parse as its format, instead of copying any of it unread, so the VM doesn't get that file (`config_not_copied`). The VM doesn't get opencode's other files in `~/.config/opencode` either, such as a `.env`, because devvm can't take secrets out of them, apart from its Markdown files, such as `AGENTS.md`, which hold instructions for the agent (`config_not_copied`). An MCP server or a provider that needs one of those keys in the VM has to get it another way.
## The self-check
+2 -2
View File
@@ -80,7 +80,7 @@ When you make or delete one of these folders on this machine later, devvm notice
devvm copies the files into the VM's home on every launch, over the VM's own. With [network policy](../safety/network.md), the copies of the logins and settings files have your secrets taken out, and the VM's proxy puts them into requests instead ([agents' logins and settings](../internals/network.md#agents-logins-and-settings)).
devvm merges your MCP servers from `~/.claude.json` into the VM's own, so servers added in the VM stay ([MCP servers](../internals/network.md#mcp-servers)). With network policy, devvm also replaces the secrets in the agents' settings files with `devvm-redacted`, and names what it replaced. Those are the values under keys that look like secrets, every env value and header, and the secrets in URLs and in arguments ([keys in settings files](../internals/network.md#keys-in-settings-files)). From the `env` of Claude Code's `settings.json`, the VM gets only Claude Code's own settings, such as `ANTHROPIC_MODEL`, the `CLAUDE_CODE_*`, `DISABLE_*` and `MAX_*` variables and those ending in `_TIMEOUT_MS`, but none whose name marks it as a credential, such as `ANTHROPIC_AUTH_TOKEN`. It also gets the values that only name where a secret is, base URLs without their passwords, `true`, `false` and short numbers. Every other env value, and every env value of an MCP server, becomes `devvm-redacted`. When devvm can't parse a settings file to take its secrets out, the VM doesn't get a copy of it, and when it can't make the copy of a login, it says why. Without network policy, devvm copies the env values and headers of Claude Code's MCP servers unchanged, and it names those servers, so add network policy if they hold secrets the VM shouldn't have.
devvm merges your MCP servers from `~/.claude.json` into the VM's own, so servers added in the VM stay ([MCP servers](../internals/network.md#mcp-servers)). With network policy, devvm also replaces the secrets in the agents' settings files with `devvm-redacted`, and names what it replaced. Those are the values under keys that look like secrets, every env value and header, and the secrets in URLs and in arguments ([keys in settings files](../internals/network.md#keys-in-settings-files)). From the `env` of Claude Code's `settings.json`, the VM gets only Claude Code's own settings, such as `ANTHROPIC_MODEL`, the `CLAUDE_CODE_*`, `DISABLE_*` and `MAX_*` variables and those ending in `_TIMEOUT_MS`, but none whose name marks it as a credential, such as `ANTHROPIC_AUTH_TOKEN`. It also gets the values that only name where a secret is, base URLs without their passwords, `true`, `false` and short numbers. Every other env value, and every env value of an MCP server, becomes `devvm-redacted`. When devvm can't parse a settings file to take its secrets out, the VM doesn't get a copy of it, and neither does it get opencode's files in `~/.config/opencode` that are neither settings nor Markdown, such as a `.env`. devvm names each file it doesn't copy, and when it can't make the copy of a login, it says why. Without network policy, devvm copies the env values and headers of Claude Code's MCP servers unchanged, and it names those servers, so add network policy if they hold secrets the VM shouldn't have.
### Claude Code login
@@ -93,7 +93,7 @@ devvm saves the Claude Code token with the other [secrets](../safety/network.md#
### Codex and opencode logins
With network policy, the VM's `auth.json` holds placeholders, and its proxy holds the real API keys and logins. The proxy reads them from this machine's login files as it needs them and refreshes ChatGPT logins there, so when the agent in the VM stops getting answers, the proxy's own log, `proxy.log` in `~/.local/share/devvm/vms/<hash>/logs/`, may say that refreshing a login failed or that you're no longer logged in that way. Log in again with `codex` or `opencode` on this machine, and if you changed how you log in, run `devvm` in the VM's folder so the VM gets the new login's placeholders. Without network policy, the VM gets the file as it is, and a VM that refreshes an OAuth login can replace its refresh token and sign this machine out. An API key avoids this.
With network policy, the VM's `auth.json` holds placeholders, and its proxy holds the real API keys and logins. The proxy reads them from this machine's login files as it needs them and refreshes ChatGPT logins there, so when the agent in the VM stops getting answers, the proxy's own log, `proxy.log` in `~/.local/share/devvm/vms/<hash>/logs/`, may say that refreshing a login failed or that you're no longer logged in that way. Log in again with `codex` or `opencode` on this machine, and if you changed how you log in, run `devvm` in the VM's folder so the VM gets the new login's placeholders. The proxy puts in opencode's API keys for Anthropic, OpenAI and OpenRouter, and its OpenAI and GitHub Copilot logins. The VM gets opencode's API keys for other providers unchanged, and its other OAuth logins, such as Copilot Enterprise's, without their access and refresh tokens, so they don't work in the VM, and devvm warns you about each. To use such a provider in the VM, log in to it with an API key on this machine. Without network policy, the VM gets the file as it is, and a VM that refreshes an OAuth login can replace its refresh token and sign this machine out. An API key avoids this.
## History
+35 -12
View File
@@ -351,6 +351,15 @@ func opencodeBindings(m map[string]any, salt string) []proxy.Binding {
}
func opencodeVM(m map[string]any, salt string) map[string]any {
// An OAuth login devvm doesn't bind loses its tokens: the VM never holds a refresh token.
for _, id := range opencodeUnbound(m, true) {
e := obj(m, id)
for _, k := range []string{"access", "refresh"} {
if str(e, k) != "" {
e[k] = redactMark
}
}
}
for _, b := range opencodeBindings(m, salt) {
e := obj(m, strings.TrimPrefix(b.Name, "opencode-"))
if str(e, "type") == "api" {
@@ -366,15 +375,16 @@ func opencodeVM(m map[string]any, salt string) map[string]any {
return m
}
// Providers whose logins the VM's copy still holds as they are, sorted.
func opencodeOthers(m map[string]any) []string {
// opencodeUnbound returns the providers whose logins devvm doesn't bind, sorted: the OAuth ones
// (which the VM's copy holds without their tokens), or the others (which it holds as they are).
func opencodeUnbound(m map[string]any, oauth bool) []string {
known := map[string]bool{}
for _, b := range opencodeBindings(m, "") {
known[strings.TrimPrefix(b.Name, "opencode-")] = true
}
var out []string
for id := range m {
if !known[id] {
if !known[id] && (str(obj(m, id), "type") == "oauth") == oauth {
out = append(out, id)
}
}
@@ -769,31 +779,44 @@ func (f File) Bindings() ([]proxy.Binding, error) {
return nil, f.errKind()
}
// VMFile is the VM's copy of an agent's file (File.VMCopy).
type VMFile struct {
Data []byte
// Kept: what of the file the copy holds as it is, sorted: Codex's auth.json keys or opencode's
// providers devvm doesn't know.
Kept []string
// Withheld: opencode's OAuth logins devvm doesn't bind, sorted, which the copy holds without
// their tokens.
Withheld []string
}
// VMCopy returns the VM's copy of the file, with placeholders ending in f.Salt in place of its keys
// and tokens, and what of it the copy holds as it is: Codex's auth.json keys or opencode's
// providers devvm doesn't know, sorted.
func (f File) VMCopy() (copied []byte, kept []string, err error) {
// and tokens.
func (f File) VMCopy() (VMFile, error) {
m, err := readJSON(f.Path)
if err != nil {
return nil, nil, err
return VMFile{}, err
}
var c VMFile
switch f.Kind {
case Codex:
kept = codexOthers(m)
c.Kept = codexOthers(m)
m = codexVM(m, f.Salt)
case Opencode:
kept = opencodeOthers(m)
c.Kept, c.Withheld = opencodeUnbound(m, false), opencodeUnbound(m, true)
m = opencodeVM(m, f.Salt)
case Claude:
m = claudeVM(m, f.Salt)
default:
return nil, nil, f.errKind()
return VMFile{}, f.errKind()
}
b, err := json.MarshalIndent(m, "", " ")
if err != nil {
return nil, nil, err
return VMFile{}, err
}
return append(b, '\n'), kept, nil
c.Data = b
c.Data = append(c.Data, '\n')
return c, nil
}
// Get returns the value of the binding named name: from the host's file, read each time, refreshing
+28 -3
View File
@@ -58,9 +58,9 @@ func jwtWith(exp time.Time, extra map[string]any) string {
// vmCopy is f's VMCopy, as text.
func vmCopy(t *testing.T, f File) (string, []string) {
t.Helper()
b, kept, err := f.VMCopy()
c, err := f.VMCopy()
must(t, err)
return string(b), kept
return string(c.Data), c.Kept
}
// bindings is f's Bindings, each checked to be one of f's logins.
@@ -259,7 +259,7 @@ func TestGetRefuses(t *testing.T) {
if _, err := f.Bindings(); err == nil {
t.Errorf("Bindings of %+v", f)
}
if _, _, err := f.VMCopy(); err == nil {
if _, err := f.VMCopy(); err == nil {
t.Errorf("VMCopy of %+v", f)
}
}
@@ -319,6 +319,31 @@ func TestOpencodeLogins(t *testing.T) {
}
}
// An OAuth login devvm doesn't bind (a provider it doesn't know, Copilot Enterprise) loses its
// tokens in the VM's copy: the VM never holds a refresh token.
func TestOpencodeUnboundOAuthWithheld(t *testing.T) {
f := File{Kind: Opencode, Path: writeFile(t, map[string]any{
"anthropic": map[string]any{"type": "oauth", "access": "fake-access-a", "refresh": "fake-refresh-a", "expires": 1},
"github-copilot": map[string]any{"type": "oauth", "access": "fake-access-e", "refresh": "fake-refresh-e", "expires": 0, "enterpriseUrl": "ghe.example.com"},
"llama-cpp": map[string]any{"type": "api", "key": "local"},
})}
out, kept := vmCopy(t, f)
for _, s := range []string{"fake-access-a", "fake-refresh-a", "fake-access-e", "fake-refresh-e"} {
if strings.Contains(out, s) {
t.Errorf("the VM's copy holds %q:\n%s", s, out)
}
}
if !strings.Contains(out, `"local"`) || !strings.Contains(out, `"ghe.example.com"`) {
t.Errorf("the VM's copy lost what isn't a token:\n%s", out)
}
if !slices.Equal(kept, []string{"llama-cpp"}) {
t.Errorf("kept = %v", kept)
}
if c, err := f.VMCopy(); err != nil || !slices.Equal(c.Withheld, []string{"anthropic", "github-copilot"}) {
t.Errorf("withheld = %v, %v", c.Withheld, err)
}
}
// With a salt, every placeholder ends in the VM's key, so two VMs' differ.
func TestLoginSalt(t *testing.T) {
p := writeFile(t, map[string]any{
+1
View File
@@ -169,6 +169,7 @@ var docs = map[string]string{ //nolint:gosec // message IDs and pages, not crede
"no_secret": "safety/network#saving-and-binding-secrets",
"codex_login_kept": "using/coding-agents#codex-and-opencode-logins",
"opencode_login_kept": "using/coding-agents#codex-and-opencode-logins",
"opencode_login_withheld": "using/coding-agents#codex-and-opencode-logins",
"codex_no_key": "using/coding-agents#codex-and-opencode-logins",
"codex_no_chatgpt": "using/coding-agents#codex-and-opencode-logins",
"codex_refresh_failed": "using/coding-agents#codex-and-opencode-logins",
+6
View File
@@ -2174,6 +2174,11 @@ func OpencodeLoginKept(providers string) M {
return M{id: "opencode_login_kept", vals: []val{{"providers", providers}}}
}
// OpencodeLoginWithheld is [opencode_login_withheld]: "The VM gets opencode's {{.providers}} login without its OAuth tokens, because network policy keeps them on this machine. To use that provider in the VM, log in to it with an API key on this machine."
func OpencodeLoginWithheld(providers string) M {
return M{id: "opencode_login_withheld", vals: []val{{"providers", providers}}}
}
// OpencodeRefreshFailed is [opencode_refresh_failed]: "Refreshing opencode's {{.provider}} login on this machine failed: {{.reason}}. Log in again with opencode on this machine."
func OpencodeRefreshFailed(provider string, reason string) M {
return M{id: "opencode_refresh_failed", vals: []val{{"provider", provider}, {"reason", reason}}}
@@ -3765,6 +3770,7 @@ var specs = map[string]spec{
"nothing_to_clean": {},
"oci_waiting": {},
"opencode_login_kept": {fields: []string{"providers"}},
"opencode_login_withheld": {fields: []string{"providers"}},
"opencode_refresh_failed": {fields: []string{"provider", "reason"}},
"origin_no_boot": {fields: []string{"origin"}},
"origin_pinned": {fields: []string{"origin"}},
+9 -5
View File
@@ -123,18 +123,22 @@ func (s *Store) login(kind, salt string) agentlogin.File {
// VMLogin returns the VM's copy of an agent's login file: placeholders
// ending in salt in place of its keys and tokens. It warns about what of
// the file the copy holds as it is.
// the file the copy holds as it is, and about the logins it holds without
// their tokens.
func (s *Store) VMLogin(kind, salt string) ([]byte, error) {
data, kept, err := s.login(kind, salt).VMCopy()
if len(kept) > 0 {
list := strings.Join(kept, ", ")
c, err := s.login(kind, salt).VMCopy()
if len(c.Kept) > 0 {
list := strings.Join(c.Kept, ", ")
if kind == agentlogin.Codex {
s.Warn(msg.CodexLoginKept(list))
} else {
s.Warn(msg.OpencodeLoginKept(list))
}
}
return data, err
if len(c.Withheld) > 0 {
s.Warn(msg.OpencodeLoginWithheld(strings.Join(c.Withheld, ", ")))
}
return c.Data, err
}
// MCPSecrets returns the MCP servers in ~/.claude.json whose settings hold
+4 -2
View File
@@ -476,13 +476,15 @@ func TestVMCopies(t *testing.T) {
}
// What a copy holds as it is is warned about.
writeLogin(t, s, "codex", `{"OPENAI_API_KEY":"sk-codex-secret","extra":"x","b":1}`)
writeLogin(t, s, "opencode", `{"llama":{"type":"api","key":"local"}}`)
writeLogin(t, s, "opencode", `{"llama":{"type":"api","key":"local"},"other":{"type":"oauth","access":"a","refresh":"r"}}`)
for _, kind := range []string{"codex", "opencode"} {
if _, err := s.VMLogin(kind, salt); err != nil {
t.Errorf("VMLogin(%s): %v", kind, err)
}
}
if want := []string{"codex_login_kept keys=b, extra", "opencode_login_kept providers=llama"}; !slices.Equal(warned, want) {
if want := []string{
"codex_login_kept keys=b, extra", "opencode_login_kept providers=llama", "opencode_login_withheld providers=other",
}; !slices.Equal(warned, want) {
t.Errorf("warned %q, want %q", warned, want)
}
out, keys, err := Redact("json", []byte(`{"env":{"API_TOKEN":"tok-secret","NAME":"x"}}`))
+16 -2
View File
@@ -354,7 +354,8 @@ func (e syncer) stage(ctx context.Context, st *state.VM, in setupInputs) (*stage
// stageNet adds what a VM with network policy gets: devvm's CA, its
// logins' copies with placeholders ending in its salt, and its agents'
// settings files with the values under secret-looking keys taken out (one
// that can't be read that way isn't sent).
// that can't be read that way isn't sent, nor are opencode's files that
// aren't settings or Markdown: withheld).
func (e syncer) stageNet(s *stage, store *secrets.Store, vm string, tools []string, salt string) error {
ca := e.Dirs.VM(vm).CA()
for _, f := range [][2]string{{"ca/devvm-proxy.crt", ca.Cert()}, {"ca/devvm-proxy-next.crt", ca.NextCert()}} {
@@ -384,11 +385,15 @@ func (e syncer) stageNet(s *stage, store *secrets.Store, vm string, tools []stri
if !ok {
continue
}
shown := filepath.Join(e.Dirs.Home, rel)
format, ok := settingsFormat(rel)
if !ok {
if withheld(rel) {
s.drop(f.name)
e.Warn(msg.ConfigNotCopied(shown, vm))
}
continue
}
shown := filepath.Join(e.Dirs.Home, rel)
out, keys, err := secrets.Redact(format, f.data)
if err != nil {
s.drop(f.name)
@@ -422,6 +427,15 @@ func settingsFormat(rel string) (string, bool) {
return "json", true
}
// withheld reports whether a VM with network policy doesn't get an agent's
// file, by its path relative to the home folder, because devvm can't take
// secrets out of it: opencode's config folder's files but its settings
// (settingsFormat) and its Markdown, such as AGENTS.md. A .env is one.
func withheld(rel string) bool {
_, settings := settingsFormat(rel)
return !settings && filepath.Dir(rel) == opencodeDir && filepath.Ext(rel) != ".md"
}
// hostTZ is the host's timezone: what /etc/localtime links to, else
// /etc/timezone.
func hostTZ() string {
+17
View File
@@ -136,6 +136,23 @@ func TestUpLinksNoPolicy(t *testing.T) {
}
}
// With network policy, opencode's config folder's files that are neither
// settings nor Markdown stay on the host; every other agent's file goes.
func TestWithheld(t *testing.T) {
for rel, want := range map[string]bool{
".config/opencode/.env": true,
".config/opencode/secrets.txt": true,
".config/opencode/AGENTS.md": false,
".config/opencode/opencode.json": false,
".codex/AGENTS.md": false,
".claude/CLAUDE.md": false,
} {
if got := withheld(rel); got != want {
t.Errorf("withheld(%s) = %v, want %v", rel, got, want)
}
}
}
// The tool images a VM's report lists: only the VM's own, each once, in
// the report's order; a line that's anything else, or cut short, doesn't
// count. capped keeps the read to its limit.
+4
View File
@@ -2201,6 +2201,10 @@ other = "The VM gets {{.keys}} from Codex's auth.json unchanged."
description = "providers lists opencode's login providers, comma-separated"
other = "The VM gets opencode's {{.providers}} login unchanged."
[opencode_login_withheld]
description = "providers lists opencode's OAuth login providers, comma-separated"
other = "The VM gets opencode's {{.providers}} login without its OAuth tokens, because network policy keeps them on this machine. To use that provider in the VM, log in to it with an API key on this machine."
[devcontainer_using]
description = "file is the devcontainer.json's path in the project folder"
other = "devvm makes {{.vm}} as {{.file}} says. To skip the file, run devvm --no-devcontainer."
+13 -2
View File
@@ -62,15 +62,22 @@ stderr '^devvm: no_claude_token vm=devvm-notoken-[0-9a-f]{14}$'
# With network policy: the VM's own CA and its next, the VM's own placeholders, the logins'
# copies with placeholders (the host's files unchanged), and the
# settings files with their keys taken out; one devvm can't read that way
# isn't sent.
# isn't sent, and neither is an opencode file that isn't settings or
# Markdown, such as a .env.
mkdir $HOME/.config/opencode
cp $WORK/opencode-env $HOME/.config/opencode/.env
cp $WORK/opencode-agents $HOME/.config/opencode/AGENTS.md
project net
env CLAUDE_CODE_OAUTH_TOKEN=sk-ant-oat01-testfake
exec devvm --network-policy --no-git-protect --agents claude,codex
exec devvm --network-policy --no-git-protect --agents claude,codex,opencode
stderr '^config_redacted file=\S*/home/\.claude/settings\.json keys=env\.ANTHROPIC_API_KEY vm=devvm-net-[0-9a-f]{14}$'
stderr '^devvm: config_not_copied file=\S*/home/\.codex/config\.toml vm=devvm-net-[0-9a-f]{14}$'
stderr '^devvm: config_not_copied file=\S*/home/\.config/opencode/\.env vm=devvm-net-[0-9a-f]{14}$'
! stderr claude_mcp_secrets_copied
exec tar -tf $STUB_DIR/sync.tar
! stdout '^home/\.codex/config\.toml$'
! stdout '^home/\.config/opencode/\.env$'
stdout '^home/\.config/opencode/AGENTS\.md$'
vm_name NET net
exec tar -xOf $STUB_DIR/sync.tar ca/devvm-proxy.crt
cmp stdout $NET_dir/run/ca/ca.pem
@@ -134,6 +141,10 @@ first=$(sed -n '/"files": \[/{n;s/.*"\([^"]*\)".*/\1/p;}' "$FAILS_dir/vm.json")
-- config.toml --
note = """
testfake-unclosed
-- opencode-env --
MY_SERVICE=testfake-dotenv
-- opencode-agents --
Be brief.
-- history.jsonl --
{"prompt":"testfake-history"}
-- vm-plain --