feat(sandbox): route host-shell surfaces into microVM via shell wrapper

This commit is contained in:
Chris Scott committed 2026-08-14 18:26:21 -04:00
1 parent aa3fb48a62
commit ae117d6a78
57 files changed
+711 -784

No files matched your search

@@ -177,6 +177,7 @@ const runOpenCodeSection = (snippet: string, env: Record<string, string> = {}) =
PATH: `${stubDir}:${homeDir}/.opencode/bin:/usr/bin:/bin`,
OCM_STUB_LOG: logPath,
HOME: homeDir,
OPENCODE_BUNDLED_VERSION: '1.18.16',
...env,
},
})
@@ -204,6 +205,16 @@ describe('install_opencode', () => {
expect(urls).not.toContain('/releases/latest/download/')
})
it('refuses to guess the pinned build when OPENCODE_BUNDLED_VERSION is unset', () => {
stubInstallTools()
const res = runOpenCodeSection(`${extractInstallOpencode()}\ninstall_opencode`, {
OPENCODE_BUNDLED_VERSION: '',
})
expect(res.status).not.toBe(0)
expect(res.stderr).toContain('OPENCODE_BUNDLED_VERSION is not set')
expect(curlLog()).toHaveLength(0)
})
it('honors an OPENCODE_BUNDLED_VERSION override for the download URL', () => {
stubInstallTools()
const res = runOpenCodeSection(`${extractInstallOpencode()}\ninstall_opencode`, {