Dashboard › opencode › Distillation
6f570136-7af1-4cf3-81be-6254e236b60e["lore_tm_v1_AQaKgtMq4qzaCR9MLAtrIlXLT0mJYp7zZTMY1RtqrXY"]
Date: Sep 15, 2026
PromptAdmitted, requestExecution, and PromptExecutionRequested across schema, core implementation/tests, checked-in OpenAPI, and generated JS SDK artifacts in /home/byk/Code/opencode.packages/schema/src/session-event.ts defines PromptAdmitted at lines 94-102 with optional requestExecution: Schema.Boolean.pipe(optional) at line 99, defines PromptExecutionRequested at lines 104-112, and includes both events in unions/manifests at lines 489-490 and 523-524; packages/schema/test/event-manifest.test.ts:53 references SessionEvent.PromptExecutionRequested.packages/core/src/session.ts:373 sets requestExecution: input.resume !== false.packages/core/src/session/input.ts declares requestExecution: boolean at lines 51 and 180; computes shouldWake through requestExecution(...) only when requested at line 57; publishes PromptAdmitted with requestExecution at lines 62-68; gates returned wake state with input.requestExecution && shouldWake at line 84; returns { admitted: stored, shouldWake: false } for non-executing exact-retry input at line 93; invokes requestExecution(...) otherwise at line 94; defines SessionInput.requestExecution at line 103; publishes SessionEvent.PromptExecutionRequested at line 123; and sets wake_pending: input.requestExecution at line 199.packages/core/src/session/projector.ts projects SessionEvent.PromptAdmitted at lines 371-380 using requestExecution: event.data.requestExecution ?? false, projects SessionEvent.PromptExecutionRequested at line 385, and initializes another projected requestExecution state to false at line 439.packages/core/test/session-prompt.test.ts:419,469,542,550,597, with asserted PromptExecutionRequested event counts of 1, 0, and 0; packages/core/test/session-runner.test.ts:705, packages/core/test/session-projector.test.ts:633,880,1356, and packages/core/test/session-create.test.ts:290 also cover the new event/data paths.packages/sdk/openapi.json contains PromptAdmitted references in public/durable/sync schema areas at lines 15309, 20577, 23811, 24200, 25660, 28545, and 34779, with optional requestExecution properties at lines 17899, 25709, 28599, and 34811.packages/sdk/js/src/v2/gen/types.gen.ts includes EventSessionNextPromptAdmitted and EventSessionNextPromptExecutionRequested in the top-level event union at lines 23-24; SyncEventSessionNextPromptAdmitted and SyncEventSessionNextPromptExecutionRequested in the sync union at lines 1649-1650; and SessionNextPromptAdmitted plus SessionNextPromptExecutionRequested in unions at lines 2784-2785 and 2914-2915.packages/sdk/js/src/v2/gen/types.gen.ts: SyncEventSessionNextPromptAdmitted with optional requestExecution?: boolean at lines 3416-3430 and SyncEventSessionNextPromptExecutionRequested at line 3435; SessionNextPromptAdmitted with optional requestExecution?: boolean at lines 4344-4362 and SessionNextPromptExecutionRequested at line 4366; EventSessionNextPromptAdmitted with optional requestExecution?: boolean at lines 6455-6464 and EventSessionNextPromptExecutionRequested at line 6468.