mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-06 23:03:24 +00:00
docs(core): clarify turn rebuild promotion
This commit is contained in:
parent
ad04846593
commit
5462e08ac1
1 changed files with 4 additions and 2 deletions
|
|
@ -96,8 +96,10 @@ export const make = Effect.gen(function* () {
|
|||
/**
|
||||
* Promotes admitted input and builds one coherent immutable request snapshot.
|
||||
*
|
||||
* Rebuild transitions before promotion preserve the requested delivery;
|
||||
* transitions after promotion clear it so queued input cannot be promoted twice.
|
||||
* If initialization becomes stale before input is promoted, the rebuilt
|
||||
* attempt must still perform that promotion. Once promotion has completed,
|
||||
* later rebuilds read it from durable history instead of promoting again;
|
||||
* repeating a queue promotion could open the next queued prompt too early.
|
||||
*/
|
||||
const prepareTurn = Effect.fn("SessionRunner.prepareTurn")(function* (
|
||||
sessionID: SessionSchema.ID,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue