mirror of
https://github.com/stablyai/orca.git
synced 2026-11-04 11:07:42 +00:00
* 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
20 lines
648 B
TypeScript
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
|
|
}
|
|
}
|