mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-21 05:52:35 +08:00
refactor: fix merge main
This commit is contained in:
@@ -26,6 +26,7 @@ describe("tui thread", () => {
|
||||
await check(".")
|
||||
})
|
||||
|
||||
// kilocode_change start
|
||||
test("ignores stale PWD after cwd is changed by a process wrapper", async () => {
|
||||
await using root = await tmpdir()
|
||||
const pkg = path.join(root.path, "packages", "opencode")
|
||||
@@ -33,4 +34,5 @@ describe("tui thread", () => {
|
||||
|
||||
expect(resolveThreadDirectory(".", root.path, pkg)).toBe(pkg)
|
||||
})
|
||||
// kilocode_change end
|
||||
})
|
||||
|
||||
@@ -20,7 +20,7 @@ type Overlay = {
|
||||
|
||||
afterEach(async () => {
|
||||
;(Global.Path as { config: string }).config = original
|
||||
await AppRuntime.runPromise(Config.Service.use((svc) => svc.invalidate(true)))
|
||||
await AppRuntime.runPromise(Config.Service.use((svc) => svc.invalidate()))
|
||||
await disposeAllInstances()
|
||||
await resetDatabase()
|
||||
})
|
||||
@@ -45,7 +45,7 @@ async function config(dir: string, value: unknown) {
|
||||
}
|
||||
|
||||
async function invalidate() {
|
||||
await AppRuntime.runPromise(Config.Service.use((svc) => svc.invalidate(true)))
|
||||
await AppRuntime.runPromise(Config.Service.use((svc) => svc.invalidate()))
|
||||
}
|
||||
|
||||
describe("config overlay routes", () => {
|
||||
|
||||
Reference in New Issue
Block a user