fix(lsp): reset safety block on server restart to prevent permanent blocks (#1366)

This commit is contained in:
YeonGyu-Kim
2026-02-08 14:34:11 +09:00
parent 441cbf5901
commit f4cb1c21c9
4 changed files with 193 additions and 20 deletions
@@ -1,8 +1,9 @@
import { afterEach, describe, expect, test } from "bun:test"
import { _resetForTesting, setMainSession } from "../../features/claude-code-session-state"
import type { BackgroundTask } from "../../features/background-agent"
import { createUnstableAgentBabysitterHook } from "./index"
const projectDir = "/Users/yeongyu/local-workspaces/oh-my-opencode"
const projectDir = process.cwd()
type BabysitterContext = Parameters<typeof createUnstableAgentBabysitterHook>[0]
@@ -21,6 +22,9 @@ function createMockPluginInput(options: {
prompt: async (input: unknown) => {
promptCalls.push({ input })
},
promptAsync: async (input: unknown) => {
promptCalls.push({ input })
},
},
},
}