fix(workspace): hide ephemeral quick runtimes

This commit is contained in:
2026-08-31 14:39:17 +02:00
parent 087c177e8e
commit a4ee3eb7a8
4 changed files with 256 additions and 2 deletions
+5 -1
View File
@@ -347,6 +347,7 @@ export function createAgentRegistry({
let stopping = false;
function publishWorkspace(type, runtime, data = {}) {
if (runtime?.ephemeral) return undefined;
const event = {
version: "v1",
bridgeInstanceId,
@@ -1322,6 +1323,7 @@ export function createAgentRegistry({
[...managedWorktrees].map((worktreePath) => [worktreePath, []]),
);
for (const runtime of runtimesByRuntimeId.values()) {
if (runtime.ephemeral) continue;
let group = grouped.get(runtime.worktreePath);
if (!group) {
group = [];
@@ -1562,7 +1564,9 @@ export function createAgentRegistry({
},
getWorkspace: workspace,
getWorkspaceSummary() {
const runtimes = [...runtimesByRuntimeId.values()];
const runtimes = [...runtimesByRuntimeId.values()].filter(
(runtime) => !runtime.ephemeral,
);
return {
bridgeInstanceId,
latestSeq: workspaceSequence,