1 parent be8263d commit 5b923aaCopy full SHA for 5b923aa
2 files changed
packages/opencode/src/acp/agent.ts
@@ -130,7 +130,7 @@ async function sendUsageUpdate(
130
})
131
}
132
133
-export async function init({ sdk: _sdk }: { sdk: OpencodeClient }) {
+export function init({ sdk: _sdk }: { sdk: OpencodeClient }) {
134
return {
135
create: (connection: AgentSideConnection, fullConfig: ACPConfig) => {
136
return new Agent(connection, fullConfig)
packages/opencode/src/cli/cmd/acp.ts
@@ -52,7 +52,7 @@ export const AcpCommand = effectCmd({
52
53
54
const stream = ndJsonStream(input, output)
55
- const agent = yield* Effect.promise(() => ACP.init({ sdk }))
+ const agent = ACP.init({ sdk })
56
57
new AgentSideConnection((conn) => {
58
return agent.create(conn, { sdk })
0 commit comments