mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 06:04:43 +00:00
Surface aggregate status (error, provisioning, running, ready, no sandbox) as a colored pill in the transcript panel header. Integrates task runtime status, session status, and sandbox availability via the sandboxProcesses interest topic so the pill accurately reflects unreachable sandboxes. Includes mock tasks demonstrating error, provisioning, and running states, unit tests for deriveHeaderStatus, and workspace-dashboard integration. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
21 lines
703 B
TypeScript
21 lines
703 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { taskKey, historyKey, projectBranchSyncKey, projectKey, projectPrSyncKey, taskSandboxKey, workspaceKey } from "../src/actors/keys.js";
|
|
|
|
describe("actor keys", () => {
|
|
it("prefixes every key with workspace namespace", () => {
|
|
const keys = [
|
|
workspaceKey("default"),
|
|
projectKey("default", "repo"),
|
|
taskKey("default", "repo", "task"),
|
|
taskSandboxKey("default", "sbx"),
|
|
historyKey("default", "repo"),
|
|
projectPrSyncKey("default", "repo"),
|
|
projectBranchSyncKey("default", "repo"),
|
|
];
|
|
|
|
for (const key of keys) {
|
|
expect(key[0]).toBe("ws");
|
|
expect(key[1]).toBe("default");
|
|
}
|
|
});
|
|
});
|