mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
fix: explicit output if command is not supported
This commit is contained in:
parent
7f645b9726
commit
5d59ceb6f3
7 changed files with 336 additions and 34 deletions
|
|
@ -205,13 +205,19 @@ export async function runNonInteractive(
|
|||
return;
|
||||
}
|
||||
case 'stream_messages':
|
||||
// ACP exclusive - should not reach here in non-interactive mode
|
||||
throw new FatalInputError(
|
||||
'Stream messages mode is not supported in non-interactive CLI',
|
||||
);
|
||||
break;
|
||||
case 'unsupported':
|
||||
throw new FatalInputError(slashCommandResult.reason);
|
||||
case 'unsupported': {
|
||||
await emitNonInteractiveFinalMessage({
|
||||
message: slashCommandResult.reason,
|
||||
isError: true,
|
||||
adapter,
|
||||
config,
|
||||
startTimeMs: startTime,
|
||||
});
|
||||
return;
|
||||
}
|
||||
case 'no_command':
|
||||
break;
|
||||
default: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue