Skip to content

Commit

Agents' computers keep their homes. The runner binds the agent homes bucket, which now exists with its rule that abandoned uploads go after a day, so a computer that sleeps wakes with what it had and the Computer tab shows the disk attached. The deploy guide says a self-hosted g1t without the bucket comments the binding out.

syntaqxcommitted Parent2d3fa1cBrowse files
2 files+9−80/2 viewed
+5−2
334334 npx wrangler r2 bucket lifecycle add g1t-agent-homes abort-uploads homes/ --abort-multipart-days 1
335335 ```
336336
337−2. Uncomment the `r2_buckets` block in `services/runner/wrangler.jsonc`
338− (`HOMES` → `g1t-agent-homes`) and deploy the runner.
337+2. Deploy the runner: its `wrangler.jsonc` binds the bucket as `HOMES`.
338+ A deploy with that binding fails until the bucket exists, so a
339+ self-hosted g1t without agent computers comments the `r2_buckets`
340+ line out instead; computers then work but forget their home when
341+ they sleep, and the Computer tab says the disk isn't attached.
339342
340343 An archived agent's home is deleted by the object itself 30 days later;
341344 nothing else expires in the bucket. Reset deletes the agent's object at
+4−6
6262 { "tag": "v3", "new_sqlite_classes": ["AgentComputer"] }
6363 ],
6464 // Where agents' computers keep their homes between wakes (src/computer.ts).
65− // NOT YET ENABLED: the bucket does not exist, and a deploy with a binding
66− // to a missing bucket fails. The operator creates it, then uncomments
67− // this block ("Agents' computers" in docs.g1t.sh/guides/deploy-to-cloudflare/):
65+ // The operator makes the bucket before the first deploy with this binding
66+ // ("Agents' computers" in docs.g1t.sh/guides/deploy-to-cloudflare/):
6867 //
6968 // npx wrangler r2 bucket create g1t-agent-homes
7069 // npx wrangler r2 bucket lifecycle add g1t-agent-homes abort-uploads homes/ --abort-multipart-days 1
7170 //
72− // Until then computers work but forget their home when they sleep, and
71+ // Without it computers work but forget their home when they sleep, and
7372 // the Computer tab says the disk isn't attached yet.
74− //
75− // "r2_buckets": [{ "binding": "HOMES", "bucket_name": "g1t-agent-homes" }],
73+ "r2_buckets": [{ "binding": "HOMES", "bucket_name": "g1t-agent-homes" }],
7674 "services": [
7775 { "binding": "IDENTITY", "service": "g1t-identity" },
7876 { "binding": "REPOS", "service": "g1t-repos" },