Files
orca/src/main/daemon/daemon-pty-lifecycle-errors.ts
T
Neil 087b895524 refactor(daemon): split oversized PTY services (#16160)
* refactor(daemon): split oversized PTY services

* revert(daemon): restore merge-base session listing and canceled-spawn behavior

Two behavior changes rode along with the file-splitting refactor:

- listLiveTerminalHostSessions dropped sessions with isTerminating, not just
  dead ones, hiding sessions the merge base still advertised.
- spawnAndPublishSession called session.beginTermination() before publishing a
  canceled spawn into the host map.

Both hunks are reverted to the merge base; the refactor is untouched.
2026-08-24 21:18:11 -07:00

14 lines
435 B
TypeScript

export class FinalCheckpointWaitExpiredError extends Error {
constructor(sessionId: string) {
super(`Final history checkpoint did not settle within the teardown deadline: ${sessionId}`)
this.name = 'FinalCheckpointWaitExpiredError'
}
}
export class TerminalKilledError extends Error {
constructor(sessionId: string) {
super(`Session "${sessionId}" was explicitly killed`)
this.name = 'TerminalKilledError'
}
}