opencode/packages/core
Aiden Cline 4bc90593df feat(codemode): interrupt all pending work at program return
Replace the two-class completion lifecycle with one rule: once the
program returns, every promise still running - race losers, fail-fast
stragglers, and fire-and-forget calls alike - is interrupted rather
than awaited. Work whose completion matters must be awaited by the
program.

Waiting for un-awaited work before interrupting observed leftovers
could hold the execution open or deadlock it outright: a fire-and-
forget chain awaiting a race loser, or queued work needing tool-call
permits the losers occupied, blocked a drain that only the pending
interruption could unblock. Rejections that settled un-awaited before
the return still surface as Success.warnings diagnostics.

Give warnings their own output byte budget equal to maxOutputBytes so
a budget-consuming value can never starve runtime diagnostics, and
state the lifetime rule in the model-facing instructions. Port ten
curated Test262 combinator cases (duplicate members, already-settled
inputs, ordering, resolve/reject flattening) and cover the timeout-
during-cleanup path with a never-settling slow-cleanup harness tool.
2026-07-09 23:22:28 -05:00
..
script fix(core): format generated migrations 2026-06-22 08:23:25 -04:00
src feat(codemode): interrupt all pending work at program return 2026-07-09 23:22:28 -05:00
test fix(codemode): interrupt observed leftovers and report warnings 2026-07-09 19:34:28 -05:00
bunfig.toml refactor(core): simplify integration test fixtures (#33292) 2026-06-22 04:15:34 +00:00
drizzle.config.ts refactor(core): move database schema ownership (#29068) 2026-05-30 21:08:38 -04:00
package.json chore: merge dev into v2 (#35962) 2026-07-08 17:58:55 -05:00
schema.json refactor: remove todo tool (#35989) 2026-07-09 00:13:48 -05:00
sst-env.d.ts
tsconfig.json core: remove @effect/language-service plugin and optimize hot path type performance 2026-04-30 23:21:05 -04:00