Files
orca/src/renderer/src/web/preload-api/web-agent-status-api.ts
T
Jinwoo Hong 12f53da542 Remove settled-worker automatic resume and hibernation fences (#19544)
* Remove settled-worker automatic resume and hibernation fences

* test: retirement rollback case follows the no-fence policy

Case 4 seeded and asserted automaticResumeBlockedBy, which this branch
deletes. A rolled-back settled worker is now an ordinary done record that
wake clears as passive evidence, same as any finished agent pane.

* chore(i18n): regenerate the runtime-required catalog for the contrast floor strings

* test(orchestration): give the stopping-worker guard fixtures a Run
2026-09-08 05:14:59 -04:00

27 lines
963 B
TypeScript

import type { PreloadApi } from '../../../../preload/api-types'
import { noopUnsubscribe } from './web-storage'
export function createWebAgentStatusApi(): Partial<PreloadApi> {
return {
agentStatus: {
onSet: () => noopUnsubscribe,
onClear: () => noopUnsubscribe,
getSnapshot: () => Promise.resolve([]),
inferInterrupt: () => Promise.resolve(false),
inferQuestionAnswered: () => Promise.resolve(false),
onMigrationUnsupported: () => noopUnsubscribe,
onMigrationUnsupportedClear: () => noopUnsubscribe,
onLegacyWorkerTerminalRecovery: () => noopUnsubscribe,
getMigrationUnsupportedSnapshot: () => Promise.resolve([]),
drop: () => {},
dropPersisted: () => {},
dropPersistedBatch: () => {},
reconcileEndedProcess: () => {},
dropByTabPrefix: () => {},
retirePaneAuthority: () => {},
restorePaneAuthority: () => {},
transferPaneAuthority: () => {}
}
}
}