Files
orca/src/shared/terminal-split-outcome.ts
T
Neil 7b0a7ee79f fix(terminal): a timed-out CLI split names its pending pane, and a retry can never re-run its command (#32278)
* fix(terminal): a timed-out CLI split names its pending pane and can be retried without splitting again

Fixes #32169

* fix(terminal): a blank retry id or a closed pane never re-runs a split's command

* refactor(terminal): a split retry only waits for its pane and never asks the window again

* fix(terminal): a split missing from the graph is reported pending, never closed
2026-10-23 02:53:46 -07:00

20 lines
648 B
TypeScript

export type TerminalSplitOutcomeData = {
/** The new pane's leaf id: the split's operation id, and what `--retry-split` takes. */
splitId: string
tabId: string
/** True when the window may still create the pane and run its command. */
splitMayStillComplete: boolean
nextSteps: string[]
}
/** A split whose outcome the host could not confirm. Its wire code stays `runtime_error`. */
export class TerminalSplitOutcomeError extends Error {
readonly data: TerminalSplitOutcomeData
constructor(message: string, data: TerminalSplitOutcomeData) {
super(message)
this.name = 'TerminalSplitOutcomeError'
this.data = data
}
}