opencode/packages/codemode/test
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
..
fixtures refactor: remove todo tool (#35989) 2026-07-09 00:13:48 -05:00
array-callbacks-test262.test.ts test(codemode): add Test262 array coverage (#35965) 2026-07-08 17:26:11 -05:00
array-core-test262.test.ts test(codemode): add Test262 array coverage (#35965) 2026-07-08 17:26:11 -05:00
codemode.test.ts fix(codemode): interrupt observed leftovers and report warnings 2026-07-09 19:34:28 -05:00
enumeration.test.ts fix(codemode): improve prompting (#35509) 2026-07-06 09:19:04 -05:00
LICENSE.test262 test(codemode): add Test262 string coverage (#35940) 2026-07-08 15:51:54 -05:00
openapi.test.ts feat(plugin): add session request hook (#35794) 2026-07-07 19:56:47 -04:00
parity.test.ts test(codemode): add Test262 array coverage (#35965) 2026-07-08 17:26:11 -05:00
promise-test262.test.ts feat(codemode): interrupt all pending work at program return 2026-07-09 23:22:28 -05:00
promise.test.ts feat(codemode): interrupt all pending work at program return 2026-07-09 23:22:28 -05:00
signature.test.ts fix(codemode): improve prompting (#35509) 2026-07-06 09:19:04 -05:00
stdlib.test.ts test(codemode): add Test262 array coverage (#35965) 2026-07-08 17:26:11 -05:00
string-core-test262.test.ts test(codemode): add Test262 string coverage (#35940) 2026-07-08 15:51:54 -05:00
string-regexp-test262.test.ts test(codemode): add Test262 string coverage (#35940) 2026-07-08 15:51:54 -05:00
string-search-test262.test.ts test(codemode): add Test262 string coverage (#35940) 2026-07-08 15:51:54 -05:00