diff --git a/packages/opencode/src/kilo-sessions/inflight-cache.ts b/packages/opencode/src/kilo-sessions/inflight-cache.ts index 90ac6d8e66..42d424276f 100644 --- a/packages/opencode/src/kilo-sessions/inflight-cache.ts +++ b/packages/opencode/src/kilo-sessions/inflight-cache.ts @@ -39,7 +39,8 @@ export function withInFlightCache( // Guard against synchronous throws in `cb()` by forcing it into the promise chain. // This ensures errors flow through the `.catch()` below and the cache entry is cleaned up. - const task = Promise.resolve().then(() => cb()) + const task = Promise.resolve() + .then(() => cb()) .then((value) => { if (value === undefined) { // `undefined` is treated as a non-cacheable sentinel.