fix: harden workspace activation and snapshot retention

This commit is contained in:
2026-08-04 09:25:06 +02:00
parent 3b23cf3714
commit e4fdbed864
14 changed files with 474 additions and 103 deletions
+6 -2
View File
@@ -336,7 +336,7 @@ llm_policy:
}));
});
test("uses a loopback-only SSH tunnel for the bounded connector probe", async () => {
test("does not advertise a probe-only SSH tunnel as usable by runtime sessions", async () => {
const adapters = successfulAdapters();
const sshBindings: RuntimeBindings = {
...bindings,
@@ -360,7 +360,11 @@ test("uses a loopback-only SSH tunnel for the bounded connector probe", async ()
const result = await diagnose(adapters)(workspace, sshBindings, { writeProbe: false });
expect(result.activatable).toBe(true);
expect(result.activatable).toBe(false);
expect(result.diagnostics).toContainEqual(expect.objectContaining({
level: "error",
code: "workspace_not_activatable",
}));
expect(adapters.withSshTunnel).toHaveBeenCalledWith(expect.objectContaining({
localHost: "127.0.0.1",
localPort: 0,