Skip to content

Commit e7ae3f4

Browse files
committed
Remove dead provider parameter from startProviderSession closure
The startProviderSession closure declared a provider?: ProviderKind parameter in its input type, but the function body never read it — it unconditionally uses the outer preferredProvider instead. Remove the dead parameter to avoid misleading future callers.
1 parent 97ff0ac commit e7ae3f4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

apps/server/src/orchestration/Layers/ProviderCommandReactor.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,7 @@ const make = Effect.gen(function* () {
260260
.listSessions()
261261
.pipe(Effect.map((sessions) => sessions.find((session) => session.threadId === threadId)));
262262

263-
const startProviderSession = (input?: {
264-
readonly resumeCursor?: unknown;
265-
readonly provider?: ProviderKind;
266-
}) =>
263+
const startProviderSession = (input?: { readonly resumeCursor?: unknown }) =>
267264
providerService.startSession(threadId, {
268265
threadId,
269266
...(preferredProvider ? { provider: preferredProvider } : {}),

0 commit comments

Comments
 (0)