fix(codemode): preserve promise race losers

This commit is contained in:
Aiden Cline 2026-07-06 17:24:00 -05:00
commit c3b9d03bdb
5 changed files with 53 additions and 73 deletions

View file

@ -152,7 +152,7 @@ current omissions to implement, not intentional product boundaries.
- [ ] Decide whether thenable assimilation belongs in the bounded runtime. Promise resolution currently unwraps only
`SandboxPromise`; arbitrary `{ then(resolve, reject) }` values remain data. Full assimilation requires internal
callable resolver values, first-settlement arbitration, recursive adoption, and cycle detection.
- [ ] Propagate cancellation through chained promises, and consider `Promise.any`.
- [ ] Consider `Promise.any`.
- [ ] Support async iteration and `for await...of`. Define behavior first for the runtime's supported promise and
collection values, then extend it to bounded host streams when a stream boundary exists.
- [ ] Support callback-bearing standard-library variants that models commonly generate: the mapper argument to