We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 739afe3 commit d7a6680Copy full SHA for d7a6680
src/main/services/agent.ts
@@ -10,7 +10,7 @@ interface AgentStartParams {
10
11
interface TaskController {
12
abortController: AbortController;
13
- agent: ReturnType<typeof createAgent>;
+ agent: Awaited<ReturnType<typeof createAgent>>;
14
channel: string;
15
}
16
@@ -28,11 +28,7 @@ export function registerAgentIpc(
28
throw new Error("prompt and repoPath are required");
29
30
31
- const agent = createAgent(
32
- new ClaudeCodeAgent({
33
- permissionMode: "bypassPermissions",
34
- }),
35
- );
+ const agent = await createAgent(new ClaudeCodeAgent());
36
37
const abortController = new AbortController();
38
0 commit comments