Fix ACP agent commands: claude-agent-acp, remove stale ts-expect-error

This commit is contained in:
Anton A S 2026-03-15 17:06:57 +03:00
parent 583b03eb3b
commit a76d20b27b
4 changed files with 2 additions and 4 deletions

View file

@ -22,7 +22,7 @@
{
"identifier": "shell:allow-spawn",
"allow": [
{ "name": "claude-code-acp", "cmd": "claude-code-acp", "args": true },
{ "name": "claude-agent-acp", "cmd": "claude-agent-acp", "args": true },
{ "name": "codex-acp", "cmd": "codex-acp", "args": true },
{ "name": "gemini", "cmd": "gemini", "args": true },
{ "name": "openpencil-mcp", "cmd": "openpencil-mcp", "args": true }

View file

@ -99,7 +99,7 @@ export interface ACPAgentDef {
}
export const ACP_AGENTS: ACPAgentDef[] = [
{ id: 'claude-code', name: 'Claude Code', command: 'claude-code-acp', args: [] },
{ id: 'claude-code', name: 'Claude Code', command: 'claude-agent-acp', args: [] },
{ id: 'codex', name: 'Codex', command: 'codex-acp', args: [] },
{ id: 'gemini-cli', name: 'Gemini CLI', command: 'gemini', args: ['--acp'] }
]

View file

@ -157,7 +157,6 @@ export class ACPChatTransport implements ChatTransport<UIMessage> {
}
private async spawnAgent(): Promise<ACPSession> {
// @ts-expect-error — Tauri runtime-only module, not resolvable in lint/test environments
const { Command } = await import('@tauri-apps/plugin-shell')
const command = Command.create(this.agentDef.command, this.agentDef.args, {

View file

@ -24,7 +24,6 @@ export async function spawnMcpIfNeeded(): Promise<(() => void) | null> {
if (await checkHealth()) return null
// @ts-expect-error — Tauri runtime-only module, not resolvable in lint/test environments
const { Command } = await import('@tauri-apps/plugin-shell')
const command = Command.create('openpencil-mcp', [])