You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**Phase 2: server-ready**|`/workspace/.server-ready`| Server on :4096, `curl /global/health`, hot reload active |
39
+
40
+
`harness spawn` returns at phase 1 (~10s with base image). Server starts with `bun --hot` for live module reloading — file changes reflect immediately without restart.
41
+
42
+
**Before running curl or verifying server behavior**, check phase 2:
43
+
```bash
44
+
test -f /workspace/.server-ready &&echo"ready"||echo"still starting..."
45
+
```
46
+
33
47
## What happens on sandbox create
34
48
35
49
1. The init containers mint a GitHub token and clone the repo into `/workspace/altimate-code`.
36
-
2. The main container runs `bun install`to ensure all workspace dependencies are resolved (most are pre-baked in the base image, so this is a fast delta install).
50
+
2. The main container runs `bun install`(near-instant with base image pre-baking deps).
37
51
3.`.code-ready` is touched — the agent can now read/write code, run linters, run tests.
38
-
4. The server is started via `bun run --cwd packages/opencode --conditions=browser src/index.ts serve --port 4096 --hostname 0.0.0.0`.
39
-
5.`.server-ready` is touched — the agent can now interact with the HTTP API.
52
+
4. The server starts with `bun --hot` for live module reloading on file changes.
53
+
5. Once the server binds port 4096, `.server-ready` is touched.
0 commit comments