Duplicate check
Context / Summary
omac start used to quickly open the opencode UI. It now always takes 75 seconds. No similar issue was found.
Problem / What
omac start used to quickly open the opencode UI. It now always takes 75 seconds. During startup, the warning 'omac: sandbox profile "tng-default" has an empty environment.allow_vars.' is visible. See omac doctor output below for more details.
Suggested fix / Ask
This should be fast. Either eliminate the cause or provide setup guidance on how to avoid this issue.
Non-goals
No response
Evidence / Environment
Environment:
- macOS 26.5.2
- omac was initially installed in version 0.5.0 using the installer from the TNG internal repository. omac start used to be quick in this setup. After brew upgrade to versions 0.7.0 and 0.8.0, omac start now consistently takes 75 seconds.
- opencode version 1.16.0
omac doctor output:
omac 0.8.0
OS: macos
workdir: REDACTED
[ok] keychain backend: reachable
[ok] launcher config: /Users/REDACTED/.config/omac/config.yaml
[ok] registry: 1 skill(s) registered (0 workdir, 1 global)
[ok] skill-marketplace binary=yes missing_required_secrets=0
Inner harnesses:
[ok] opencode binary=opencode found
[warn] claude-code binary=claude not on $PATH
[warn] codex binary=codex not on $PATH
[warn] copilot binary=copilot not on $PATH
[warn] pi binary=pi not on $PATH
[warn] codewhale binary=codewhale not on $PATH
[ok] built-in omac-write-a-skill (opencode): present
[ok] sandbox profile "tng-default" uses the built-in sandbox
[ok] built-in sandbox: kernel backend available
[ok] network prompt: dialog backend available
[warn] sandbox profile "tng-default" has an empty environment.allow_vars
impact: at launch omac forwards only the operational minimum (HOME, PATH,
TERM, locale, …); all other ambient env vars — including provider
tokens and secrets — are NOT passed through, and omac does not
auto-forward auth vars. This differs from the pre-#102 inherit-
everything behavior; the harness starts but will not authenticate.
remediation: add the vars the harness needs to allow_vars (see
sandboxprofile.DefaultAllowVars), or set allow_vars: [""] to forward
every ambient var (minus the danger blocklist).
[warn] sandbox profile "tng-default" Allow ~/.cache
impact: cache roots are writable/readable inside the sandbox, which can leak host-derived caches and weaken per-project isolation
remediation: remove the broad grant; let the sandbox start empty and grant specific cache subpaths only when needed
[warn] sandbox profile "tng-default" Allow ~/Library/Caches
impact: cache roots are writable/readable inside the sandbox, which can leak host-derived caches and weaken per-project isolation
remediation: remove the broad grant; let the sandbox start empty and grant specific cache subpaths only when needed
[warn] sandbox profile "tng-default" Allow ~/go
impact: tool home ~/go is writable inside the sandbox, exposing host-installed toolchains and credentials
remediation: use GOPATH inside the sandbox or grant only ~/go/bin read
[warn] sandbox profile "tng-default" Allow ~/.rustup
impact: tool home ~/.rustup is writable inside the sandbox, exposing host-installed toolchains and credentials
remediation: point RUSTUP_HOME at an isolated location inside the sandbox
[warn] sandbox profile "tng-default" Allow ~/.cargo
impact: tool home ~/.cargo is writable inside the sandbox, exposing host-installed toolchains and credentials
remediation: use an isolated CARGO_HOME and project-local .cargo/config.toml; export CARGO_REGISTRIES_TOKEN in the environment that starts omac. If the sandbox profile sets environment.allow_vars, include that exact variable so the sandboxed harness inherits it; sidecar.env_passthrough configures only the sidecar. NAME is the registry key uppercased with '-' replaced by ''
sandbox profile lint (3 finding(s), advisory):
[medium] environment.allow_vars: fails closed to the operational defaults, so the harness starts but cannot authenticate; add the vars it needs to allow_vars, or [""] to inherit every non-blocklisted var ((empty))
[medium] filesystem.read: overlaps known secret path /Users/REDACTED/.gitconfig not in baseline (git config (may embed tokens)) (~/.gitconfig)
[medium] network.allow_tcp_connect: direct outbound TCP to SSH/RDP port (22)
When a run fails, omac diagnose shows what the sandbox blocked and why.
Duplicate check
Context / Summary
omac start used to quickly open the opencode UI. It now always takes 75 seconds. No similar issue was found.
Problem / What
omac start used to quickly open the opencode UI. It now always takes 75 seconds. During startup, the warning 'omac: sandbox profile "tng-default" has an empty environment.allow_vars.' is visible. See omac doctor output below for more details.
Suggested fix / Ask
This should be fast. Either eliminate the cause or provide setup guidance on how to avoid this issue.
Non-goals
No response
Evidence / Environment
Environment:
omac doctor output:
When a run fails,
omac diagnoseshows what the sandbox blocked and why.