Skip to content

Commit 0701a9d

Browse files
author
Eric Wheeler
committed
fix: respect user-configured terminal integration timeout
The terminal integration timeout was being capped at the default value of 5 seconds due to a Math.min call in getShellIntegrationTimeout(), preventing users from setting longer timeouts. This caused shell integration to fail prematurely when initialization took longer than 5 seconds. This change removes the Math.min cap, allowing the user-configured timeout value to be respected. Fixes: #3885 Fixes: #3829 Regression from: #2820 Signed-off-by: Eric Wheeler <[email protected]>
1 parent d149d65 commit 0701a9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/integrations/terminal/BaseTerminal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export abstract class BaseTerminal implements RooTerminal {
170170
}
171171

172172
public static getShellIntegrationTimeout(): number {
173-
return Math.min(BaseTerminal.shellIntegrationTimeout, BaseTerminal.defaultShellIntegrationTimeout)
173+
return BaseTerminal.shellIntegrationTimeout
174174
}
175175

176176
public static setShellIntegrationDisabled(disabled: boolean): void {

0 commit comments

Comments
 (0)