fix(cli): wire initialModel/initialProvider through useSocket, add error handling
All checks were successful
ci/woodpecker/push/ci Pipeline was successful

- Pass initialModel/initialProvider from CLI flags into useSocket hook
- Include provider/modelId in socket message emit (restores PR #144 functionality)
- Add provider/modelId optional fields to ChatMessagePayload type
- Add .catch() to floating promises in createConversation/deleteConversation

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-15 17:16:42 -05:00
parent 4259829d65
commit 28860c9f42
3 changed files with 28 additions and 14 deletions

View File

@@ -62,6 +62,8 @@ export interface ErrorPayload {
export interface ChatMessagePayload {
conversationId?: string;
content: string;
provider?: string;
modelId?: string;
}
/** Session info pushed when session is created or model changes */