From 9a043fe40f901af27ff68b2941a48557bd129f6e Mon Sep 17 00:00:00 2001 From: iamnbutler Date: Thu, 22 Oct 2026 17:46:53 -0400 Subject: [PATCH] fix(compute): say workspace, not sandbox, in compute service errors --- ...VMF09R0HHHKC1Y3TF8R-freeze-admission-before-admi.md | 6 +++--- ...V42TR3DK38BGR08FVCE-the-channel-owner-is-the-ace.md | 6 +++--- ...DGB6JZ0KCPK7K8DM74P-delete-stays-idempotent-each.md | 6 +++--- services/compute/index.ts | 10 +++++----- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.lane/memory/services/compute/index.ts/01M4ZP2VMF09R0HHHKC1Y3TF8R-freeze-admission-before-admi.md b/.lane/memory/services/compute/index.ts/01M4ZP2VMF09R0HHHKC1Y3TF8R-freeze-admission-before-admi.md index 8b32212b..20906171 100644 --- a/.lane/memory/services/compute/index.ts/01M4ZP2VMF09R0HHHKC1Y3TF8R-freeze-admission-before-admi.md +++ b/.lane/memory/services/compute/index.ts/01M4ZP2VMF09R0HHHKC1Y3TF8R-freeze-admission-before-admi.md @@ -4,9 +4,9 @@ anchor: class Compute created: 2026-10-15T11:45:12Z norm: '1' sig: 3b062341dbce15d0 -body_hash: 80a9be7bbf3a91be -raw_hash: ee5350909a33775b -vouched: 2026-10-19T16:56:54Z +body_hash: e4fd467ed7e3def8 +raw_hash: 32d39e0ed76a4fff +vouched: 2026-10-22T21:46:57Z lines: 49-325 --- diff --git a/.lane/memory/services/compute/index.ts/01M4ZQ5V42TR3DK38BGR08FVCE-the-channel-owner-is-the-ace.md b/.lane/memory/services/compute/index.ts/01M4ZQ5V42TR3DK38BGR08FVCE-the-channel-owner-is-the-ace.md index f06c9823..f4f59f10 100644 --- a/.lane/memory/services/compute/index.ts/01M4ZQ5V42TR3DK38BGR08FVCE-the-channel-owner-is-the-ace.md +++ b/.lane/memory/services/compute/index.ts/01M4ZQ5V42TR3DK38BGR08FVCE-the-channel-owner-is-the-ace.md @@ -4,9 +4,9 @@ anchor: class Compute created: 2026-10-15T12:04:18Z norm: '1' sig: 3b062341dbce15d0 -body_hash: 80a9be7bbf3a91be -raw_hash: ee5350909a33775b -vouched: 2026-10-19T16:56:54Z +body_hash: e4fd467ed7e3def8 +raw_hash: 32d39e0ed76a4fff +vouched: 2026-10-22T21:46:57Z lines: 51-331 --- diff --git a/.lane/memory/services/compute/index.ts/01M4ZR2DGB6JZ0KCPK7K8DM74P-delete-stays-idempotent-each.md b/.lane/memory/services/compute/index.ts/01M4ZR2DGB6JZ0KCPK7K8DM74P-delete-stays-idempotent-each.md index abea62e0..13a45d60 100644 --- a/.lane/memory/services/compute/index.ts/01M4ZR2DGB6JZ0KCPK7K8DM74P-delete-stays-idempotent-each.md +++ b/.lane/memory/services/compute/index.ts/01M4ZR2DGB6JZ0KCPK7K8DM74P-delete-stays-idempotent-each.md @@ -4,9 +4,9 @@ anchor: class Compute created: 2026-10-15T12:19:54Z norm: '1' sig: 3b062341dbce15d0 -body_hash: 80a9be7bbf3a91be -raw_hash: ee5350909a33775b -vouched: 2026-10-19T16:56:54Z +body_hash: e4fd467ed7e3def8 +raw_hash: 32d39e0ed76a4fff +vouched: 2026-10-22T21:46:58Z lines: 51-353 --- diff --git a/services/compute/index.ts b/services/compute/index.ts index df9061bb..ede3ec85 100644 --- a/services/compute/index.ts +++ b/services/compute/index.ts @@ -94,7 +94,7 @@ export class Compute extends DurableObject { } async #call(path: string, body?: unknown): Promise { - if (!this.ctx.container?.running) throw new Error("The sandbox is stopped"); + if (!this.ctx.container?.running) throw new Error("The workspace is stopped"); const response = await this.ctx.container.getTcpPort(8080).fetch(`http://container${path}`, { method: body === undefined ? "GET" : "POST", body: body === undefined @@ -119,7 +119,7 @@ export class Compute extends DurableObject { await scheduler.wait(1000); } } - throw new Error("Sandbox did not become ready in 120 seconds"); + throw new Error("The workspace did not become ready in 120 seconds"); } async #connect(thaw = true) { @@ -198,13 +198,13 @@ export class Compute extends DurableObject { if (this.ctx.storage.kv.get("frozen") && !this.ctx.storage.kv.get("ready")) { await this.ctx.container!.destroy(); } else { - throw new Error("Sandbox is already running; use resize to change its size"); + throw new Error("The workspace is already running; resize it to change its size"); } } const manifest = this.ctx.storage.kv.get("checkpoint"); if (settings.started && !manifest) { throw new Error( - "The sandbox was lost without a checkpoint; refusing to create an empty replacement", + "The workspace was lost without a checkpoint; refusing to create an empty replacement", ); } await this.#channel("freeze"); @@ -324,7 +324,7 @@ export class Compute extends DurableObject { ["exec", "checkpoint", "stop", "resize", "resume"].includes(action) && !this.ctx.container!.running ) { - throw new Error("The sandbox is stopped; use start to restore it"); + throw new Error("The workspace is stopped; Start compute restores it"); } switch (action) { case "resume":