| 176 | }; |
| 177 | |
| 178 | const makeDefaultOrchestrationThreadShell = ( |
| 179 | overrides: Partial<OrchestrationThreadShell> = {}, |
| 180 | ): OrchestrationThreadShell => { |
| 181 | const now = "2026-01-01T00:00:00.000Z"; |
| 182 | return { |
| 183 | id: defaultThreadId, |
| 184 | projectId: defaultProjectId, |
| 185 | title: "Default Thread", |
| 186 | modelSelection: defaultModelSelection, |
| 187 | runtimeMode: "full-access", |
| 188 | interactionMode: "default", |
| 189 | branch: null, |
| 190 | worktreePath: null, |
| 191 | latestTurn: null, |
| 192 | createdAt: now, |
| 193 | updatedAt: now, |
| 194 | archivedAt: null, |
| 195 | session: null, |
| 196 | latestUserMessageAt: null, |
| 197 | hasPendingApprovals: false, |
| 198 | hasPendingUserInput: false, |
| 199 | hasActionableProposedPlan: false, |
| 200 | ...overrides, |
| 201 | }; |
| 202 | }; |
| 203 | |
| 204 | const browserOtlpTracingLayer = Layer.mergeAll( |
| 205 | FetchHttpClient.layer, |