fix: Pass chatSessionRepository through createContext in trpc-adapter
The createContext call manually enumerates every field rather than spreading, so the new repo was silently dropped even though it existed on the options object.
This commit is contained in:
@@ -157,6 +157,7 @@ export function createTrpcHandler(options: TrpcAdapterOptions) {
|
||||
executionOrchestrator: options.executionOrchestrator,
|
||||
previewManager: options.previewManager,
|
||||
conversationRepository: options.conversationRepository,
|
||||
chatSessionRepository: options.chatSessionRepository,
|
||||
workspaceRoot: options.workspaceRoot,
|
||||
}),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user