1576
// Skills can be passed as is to the runtime.
1577
if (runtimeSlashCommand && runtimeSlashCommand.kind !== 'skill') {
1579
>
try {
1580
>
result = await this._wrapper.session.rpc.commands.invoke({
1581
>
name: runtimeSlashCommand.name,
1582
>
...(slashCommand.rawRest.length > 0 ? { input: slashCommand.rawRest } : {}),
1583
>
});
1584
>
} catch (err) {
1585
this._logService.error(err, `[Copilot:${this.sessionId}] rpc.commands.invoke(${slashCommand.command}) failed`);
1586
throw err;
1587
}
1589
>
case 'text':
1590
this._emitMarkdownDelta(result.markdown === true ? result.text : escapeMarkdownSyntaxTokens(result.text));
1591
break;
1593
if (result.message) {
1594
this._emitMarkdownDelta(result.message);
1595
}
1596
break;
1598
const runtimeMode = toCopilotSdkMode(result.mode);
1599
if (runtimeMode) {