mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-19 17:01:37 +03:00
fix(core): keep MCP prompts when a refresh fails (#62266)
This commit is contained in:
committed by
GitHub
Unverified
parent
75cd570807
commit
c72ce6cf82
@@ -120,7 +120,6 @@ export function make(input: Input): Connection {
|
||||
|
||||
const refreshPrompts = (client: McpClient.Connection) =>
|
||||
client.prompts().pipe(
|
||||
Effect.orElseSucceed(() => []),
|
||||
Effect.map((prompts) => {
|
||||
state.prompts = prompts
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user