Skip to content

Commit b2eef0b

Browse files
author
Zoo (VP)
committed
fix(terminal): revert lifecycle/canReuse to required in RooTerminal interface - optional lifecycle broke TS18048 across TerminalRegistry, ExecuteCommandTool, and ExecaTerminalProcess
1 parent 47e4687 commit b2eef0b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/integrations/terminal/types.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export interface RooTerminal {
1111
running: boolean
1212
taskId?: string
1313
process?: RooTerminalProcess
14-
lifecycle?: TerminalLifecycle
14+
lifecycle: TerminalLifecycle
1515
getCurrentWorkingDirectory(): string
1616
isClosed: () => boolean
1717
runCommand: (command: string, callbacks: RooTerminalCallbacks) => RooTerminalProcessResultPromise
@@ -24,7 +24,7 @@ export interface RooTerminal {
2424
getUnretrievedOutput(): string
2525
getLastCommand(): string
2626
cleanCompletedProcessQueue(): void
27-
canReuse?(options: {
27+
canReuse(options: {
2828
cwd: string
2929
reuseKey: string
3030
hasProcess: boolean

0 commit comments

Comments
 (0)