Change:
Run a command - for example - then and it doesn't exit that command !
Same issue: Versione: 1.78.1 Commit: Data: 2023-05-04T09:57:42.343Z Electron: 22.5.1 Chromium: 108.0.5359.215 16.17.1 V8: 10.8.168.25-electron.0 Sistema operativo: Darwin x64 18.7.0 In modalità sandbox: No
insiders-releasecontrl+Cbash: no job control in this shell
me too!
I am also facing the same problem and it is quite frustrating since killing the terminal is not killing the process and every time I have identify the pid and kill it from another terminal. I notice that it is tagged "Closed" but it is not fixed as of yet, atleast in Code-Insiders. Please fix this issue or suggest some sort of solution.
me either
this clearly isn't fixed
The issue this was tracking with the error in console is fixed, let's track any separate problem in

Discussion:
} // Pass the sequence along to the capability <del> const [command, ...args] = data.split(';'); switch (command) { </del> <ins> const argsIndex = data.indexOf(';'); const sequenceCommand = argsIndex === -1 ? data : data.substring(0, argsIndex); // Cast to strict checked index access const args: (string | undefined)[] = argsIndex === -1 ? [] : data.substring(argsIndex + 1).split(';'); switch (sequenceCommand) { </ins> case VSCodeOscPt.PromptStart: this._createOrGetCommandDetection(this._terminal).handlePromptStart(); return true;

this._createOrGetCommandDetection(this._terminal).handleCommandExecuted(); return true; case VSCodeOscPt.CommandFinished: { <del> const exitCode = args.length === 1 ? parseInt(args[0]) : undefined; </del> <ins> const arg0 = args[0]; const exitCode = arg0 !== undefined ? parseInt(arg0) : undefined; </ins> this._createOrGetCommandDetection(this._terminal).handleCommandFinished(exitCode); return true; } case VSCodeOscPt.CommandLine: { <ins> const arg0 = args[0]; const arg1 = args[1]; </ins> let commandLine: string; <del> if (args.length >= 1 || args.length <= 2) { commandLine = deserializeMessage(args[0]); </del> <ins> if (arg0 !== undefined) { commandLine = deserializeMessage(arg0); </ins> } else { commandLine = ''; } <del> this._createOrGetCommandDetection(this._terminal).setCommandLine(commandLine, args[1] === this._nonce); </del> <ins> this._createOrGetCommandDetection(this._terminal).setCommandLine(commandLine, arg1 === this._nonce); </ins> return true; } case VSCodeOscPt.ContinuationStart: {

return true; } case VSCodeOscPt.Property: { <del> const deserialized = args.length ? deserializeMessage(args[0]) : ''; </del> <ins> const arg0 = args[0]; const deserialized = arg0 !== undefined ? deserializeMessage(arg0) : ''; </ins> const { key, value } = parseKeyValueAssignment(deserialized); if (value === undefined) { return true;

} <del> export function parseMarkSequence(sequence: string[]): { id?: string; hidden?: boolean } { </del> <ins> export function parseMarkSequence(sequence: (string | undefined)[]): { id?: string; hidden?: boolean } { </ins> let id = undefined; let hidden = false; for (const property of sequence) { <ins> // Sanity check, this shouldn't happen in practice if (property === undefined) { continue; } </ins> if (property === 'Hidden') { hidden = true; }

await writeP(xterm, 'x1b]633;D;7x07'); mock.verify(); }); <ins> test('should pass command line sequence to the capability', async () => { const mock = shellIntegrationAddon.getCommandDetectionMock(xterm); mock.expects('setCommandLine').once().withExactArgs('', false); await writeP(xterm, 'x1b]633;Ex07'); mock.verify(); const mock2 = shellIntegrationAddon.getCommandDetectionMock(xterm); mock2.expects('setCommandLine').twice().withExactArgs('cmd', false); await writeP(xterm, 'x1b]633;E;cmdx07'); await writeP(xterm, 'x1b]633;E;cmd;invalid-noncex07'); mock2.verify(); }); </ins> test('should not activate capability on the cwd sequence (OSC 633 ; P=Cwd=<cwd> ST)', async () => { strictEqual(capabilities.has(TerminalCapability.CommandDetection), false); await writeP(xterm, 'foo');