mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
fix(config): invalidate active instance config cache on global config invalidation
This commit is contained in:
@@ -1050,6 +1050,7 @@ const layer = Layer.effect(
|
||||
|
||||
const invalidate = Effect.fn("Config.invalidate")(function* () {
|
||||
yield* invalidateGlobal
|
||||
yield* InstanceState.invalidate(state).pipe(Effect.catchCause(() => Effect.void)) // kilocode_change
|
||||
})
|
||||
|
||||
// kilocode_change start - add dispose option to skip Instance.disposeAll for permission-only changes
|
||||
|
||||
@@ -774,7 +774,7 @@ describe("config overlay routes", () => {
|
||||
for (let i = 0; i < 40; i++) {
|
||||
await json(await req(project.path, `/session/${session.id}/sandbox`))
|
||||
const snap = await SandboxStore.read(project.path, session.id)
|
||||
if (snap && snap.mode === "allow" && snap.version === 1) break
|
||||
if (snap && snap.mode === "allow" && snap.writablePaths.includes(writable.path) && snap.version === 1) break
|
||||
await Bun.sleep(250)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user