Skip to content

Commit 5b923aa

Browse files
authored
refactor(acp): drop async from synchronous ACP.init (anomalyco#25520)
1 parent be8263d commit 5b923aa

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/opencode/src/acp/agent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ async function sendUsageUpdate(
130130
})
131131
}
132132

133-
export async function init({ sdk: _sdk }: { sdk: OpencodeClient }) {
133+
export function init({ sdk: _sdk }: { sdk: OpencodeClient }) {
134134
return {
135135
create: (connection: AgentSideConnection, fullConfig: ACPConfig) => {
136136
return new Agent(connection, fullConfig)

packages/opencode/src/cli/cmd/acp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const AcpCommand = effectCmd({
5252
})
5353

5454
const stream = ndJsonStream(input, output)
55-
const agent = yield* Effect.promise(() => ACP.init({ sdk }))
55+
const agent = ACP.init({ sdk })
5656

5757
new AgentSideConnection((conn) => {
5858
return agent.create(conn, { sdk })

0 commit comments

Comments
 (0)