mirror of
https://github.com/stablyai/orca.git
synced 2026-09-29 08:03:20 +00:00
perf(runtime): skip hibernation status scan when no runtime owners
This commit is contained in:
committed by
github-actions[bot]
parent
bec77cf258
commit
e1ba7ff6e2
@@ -133,6 +133,10 @@ async function collectRuntimePtyLiveness(
|
||||
const targets = getRuntimeLivenessTargetWorktrees(state, targetWorktreeId)
|
||||
const runtimeLivePtyIdsByWorktreeId: Record<string, string[]> = {}
|
||||
const runtimeLivenessRequiredWorktreeIds = [...targets.keys()]
|
||||
if (targets.size === 0) {
|
||||
// Why: an all-local install has nothing to ask, so it must not pay the status scan below.
|
||||
return { runtimeLivePtyIdsByWorktreeId, runtimeLivenessRequiredWorktreeIds }
|
||||
}
|
||||
const completedTabIds = new Set<string>()
|
||||
for (const entry of Object.values(state.agentStatusByPaneKey)) {
|
||||
const tabId = entry?.state === 'done' ? getEntryTabId(entry) : null
|
||||
|
||||
Reference in New Issue
Block a user