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.
This commit is contained in:
Cursor Agent committed 2026-03-24 21:19:55 +00:00
1 parent 97ff0ac4a9
commit e7ae3f40f4
1 file changed
+1 -4
@@ -260,10 +260,7 @@ const make = Effect.gen(function* () {
.listSessions()
.pipe(Effect.map((sessions) => sessions.find((session) => session.threadId === threadId)));
const startProviderSession = (input?: {
readonly resumeCursor?: unknown;
readonly provider?: ProviderKind;
}) =>
const startProviderSession = (input?: { readonly resumeCursor?: unknown }) =>
providerService.startSession(threadId, {
threadId,
...(preferredProvider ? { provider: preferredProvider } : {}),