fix(workspace): hide ephemeral quick runtimes
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user