Skip to content

Commit d7a6680

Browse files
committed
ts stuff
1 parent 739afe3 commit d7a6680

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/main/services/agent.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interface AgentStartParams {
1010

1111
interface TaskController {
1212
abortController: AbortController;
13-
agent: ReturnType<typeof createAgent>;
13+
agent: Awaited<ReturnType<typeof createAgent>>;
1414
channel: string;
1515
}
1616

@@ -28,11 +28,7 @@ export function registerAgentIpc(
2828
throw new Error("prompt and repoPath are required");
2929
}
3030

31-
const agent = createAgent(
32-
new ClaudeCodeAgent({
33-
permissionMode: "bypassPermissions",
34-
}),
35-
);
31+
const agent = await createAgent(new ClaudeCodeAgent());
3632

3733
const abortController = new AbortController();
3834

0 commit comments

Comments
 (0)