Skip to content

Commit c16df60

Browse files
mkantenkoclaude
andcommitted
fix(opencode): forget every instance's service connection when an update starts
Sessions reconnecting while the service restarts reused the connection cached before the update, and other instances on the same service never dropped theirs. Forget it in invalidateCaches, which the registry runs for every instance first. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 526e6c8 commit c16df60

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • packages/provider-opencode/src/server

‎packages/provider-opencode/src/server/driver.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,7 @@ export const OpenCodeDriver: ProviderDriver<
621621
}),
622622
),
623623
),
624+
invalidateCaches: openCode2Server.forget,
624625
afterUpdate,
625626
orchestrationAdapter,
626627
textGeneration,

0 commit comments

Comments
 (0)