diff --git a/src/renderer/utils/shell-integration.ts b/src/renderer/utils/shell-integration.ts index 9d4d32d7..001ba9f6 100644 --- a/src/renderer/utils/shell-integration.ts +++ b/src/renderer/utils/shell-integration.ts @@ -86,7 +86,7 @@ export class ShellIntegrationAddon implements ITerminalAddon { this.tab.idle = true if (this.currentCommand) { const exitCode = args[0] ? Number(args[0]) : undefined - if (typeof exitCode === 'number') { + if (typeof exitCode === 'number' && exitCode < 128) { this.currentCommand.exitCode = exitCode if (!this.currentCommand.marker.isDisposed) { const theme = useTheme()