refactor: fix merge main

This commit is contained in:
Catriel Müller
2026-05-28 14:20:13 -03:00
parent 9efb241f43
commit 3c96a7c8d3
18 changed files with 2640 additions and 37 deletions
@@ -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", () => {