Dashboard › opencode › Distillation
1b5908bb-e2c3-4366-9b76-cd288b13f5f8["lore_tm_v1_JzywOda4HTQlCbCPIne9E2IonnRSy9JuXy0Z6YRuTqs","lore_tm_v1_9LU5IdAjlBTWyAQkp1E1igcD8TWn4Oc4Pc7J6la8SJQ","lore_tm_v1_lxqv5cbzqAX2Fla5kCjn7QBhaIa4phzprU1E44x6-Jk","lore_tm_v1_iXAsSHtNQ20CKIrnWBBlvZJsR33kMX_sZESrwu9dwWA","lore_tm_v1_ulEzw7idaLZ1ImdwXIZJaHvMw5Roc5aByVjpG1etBns","lore_tm_v1_T__biezwqvWcOmRfLlpEWsCre7QCwmuwkJ-5mMBy7FU","lore_tm_v1_CVwGtXRPs2t6-m_fpFVzOijURcGYcFLpSqUJVvvr2F4","lore_tm_v1_i8v7hV5tNUQ6EB3Y5EhJd9AkjYWD-YvPuF211dxj5jA","lore_tm_v1_M-O-h8TbwTlS2unrGkSGlYCwlrvxsECD7iMp647xb1o"]
Date: Sep 15, 2026
/home/byk/Code/opencode/packages/core/test/session-prompt.test.ts tests durable session event streaming: two prompts followed by SessionInput.promoteSteers(db, events, sessionID, Number.MAX_SAFE_INTEGER) produce ordered events [0, "session.next.prompt.admitted"], [1, "session.next.prompt.admitted"], [2, "session.next.prompted"], [3, "session.next.prompted"]; streaming with after equal to sequence 0 starts at [1, "session.next.prompt.admitted"]./home/byk/Code/opencode/packages/core/test/session-prompt.test.ts tests that session.resume(sessionID) resumes through an already recorded message without appending to session.messages(), without assigning promotedSeq, and with executionCalls=[sessionID] and wakeCalls=[]./home/byk/Code/opencode/packages/core/test/session-prompt.test.ts tests prompt identity semantics: omitting id on two otherwise identical prompts creates distinct message IDs and admittedCount=2; retrying with the same explicit messageID and identical prompt returns the original recorded message and leaves admittedCount=1./home/byk/Code/opencode/packages/core/test/session-prompt.test.ts tests recovery of a committed prompt: an exact retry with resume: true returns the original message and invokes advisory wake once with wakeCalls=[sessionID]./home/byk/Code/opencode/packages/core/test/session-prompt.test.ts tests durable execution intent before advisory wake: after session.prompt() with default resume behavior, the SessionInputTable row has wake_pending: true and promoted_seq: null, and wakeCalls=[sessionID]./home/byk/Code/opencode/packages/core/test/session-prompt.test.ts tests converting an admit-only exact retry into execution intent: the initial resume: false call stores wake_pending: false; retrying the same ID and prompt with resume: true changes it to wake_pending: true and produces wakeCalls=[sessionID]./home/byk/Code/opencode/packages/core/test/session-prompt.test.ts tests that reusing one messageID with different prompt text ("Fix the failing tests" then "Delete the failing tests") fails with _tag="Session.PromptConflictError", leaves session.messages() empty, and keeps admittedCount=1."never arms durable wake for a conflicting execution retry" in /home/byk/Code/opencode/packages/core/test/session-prompt.test.ts:365./home/byk/Code/opencode/packages/core/src/event.ts defines EventV2.ID from @opencode-ai/schema/event; /home/byk/Code/opencode/packages/schema/src/event.ts defines IDs as branded strings beginning with evt_, generated by "evt_" + ascending()./home/byk/Code/opencode/packages/core/src/event.ts defines readAggregate() to query EventTable by aggregate_id, sequence greater than after (default -1), and event types in the supplied manifest; results are ordered by ascending sequence, fetched with limit + 1, decoded through the manifest schema, and return { events, hasMore }./home/byk/Code/opencode/packages/core/src/event.ts defines PublishOptions with optional id, metadata, location, and commit; commit(seq) is documented as a local operational projection committed atomically with a new durable event and is neither replayed nor serialized./home/byk/Code/opencode/packages/schema/src/event.ts defines durable event metadata as version and aggregate on definitions and aggregateID, seq, and version on payloads; Event.latest() selects the highest durable version for duplicate event types and throws Duplicate latest event definition for ${definition.type} when distinct definitions tie without a version distinction; versionedType(type, version) returns ${type}.${version}./home/byk/Code/opencode/packages/schema/src/durable-event-manifest.ts defines SessionDurable with definitions: Event.durable(SessionEvent.DurableDefinitions) and schema: SessionEvent.Durable; the global Durable manifest combines durable definitions from SessionV1.Event.Definitions with SessionEvent.DurableDefinitions./home/byk/Code/opencode/packages/schema/test/event-manifest.test.ts asserts EventManifest.ServerDefinitions.length === 55 and EventManifest.Definitions.length === 85, along with identity/order checks for Session, Workspace, Project, FileSystem, Integration, Permission, Reference, and IDE event definition inventories.