[PR #29] [MERGED] fix(model): Persist selected model properly to fix Gemini API key error #39

Closed
opened 2026-02-16 09:17:53 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/openwork/pull/29
Author: @synetalsolutions
Created: 1/18/2026
Status: Merged
Merged: 1/19/2026
Merged by: @hntrl

Base: mainHead: fix/gemini-persistence


📝 Commits (1)

  • 1d51a18 fix(model): Persist selected model properly to fix Gemini API key error

📊 Changes

2 files changed (+33 additions, -11 deletions)

View changed files

📝 src/main/ipc/agent.ts (+9 -3)
📝 src/renderer/src/lib/thread-context.tsx (+24 -8)

📄 Description

This PR fixes an issue where the selected model ID was not being correctly persisted or retrieved from thread metadata. This caused the application to default to Anthropic even when Gemini was selected, leading to errors due to missing API keys.

Changes:

  • Updated src/main/ipc/agent.ts to use metadata.model.
  • Updated ThreadContext and store to persist model selection.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/openwork/pull/29 **Author:** [@synetalsolutions](https://github.com/synetalsolutions) **Created:** 1/18/2026 **Status:** ✅ Merged **Merged:** 1/19/2026 **Merged by:** [@hntrl](https://github.com/hntrl) **Base:** `main` ← **Head:** `fix/gemini-persistence` --- ### 📝 Commits (1) - [`1d51a18`](https://github.com/langchain-ai/openwork/commit/1d51a1862137374f14bbbcc4964a90472db21654) fix(model): Persist selected model properly to fix Gemini API key error ### 📊 Changes **2 files changed** (+33 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `src/main/ipc/agent.ts` (+9 -3) 📝 `src/renderer/src/lib/thread-context.tsx` (+24 -8) </details> ### 📄 Description This PR fixes an issue where the selected model ID was not being correctly persisted or retrieved from thread metadata. This caused the application to default to Anthropic even when Gemini was selected, leading to errors due to missing API keys. Changes: - Updated src/main/ipc/agent.ts to use metadata.model. - Updated ThreadContext and store to persist model selection. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 09:17:53 -05:00
yindo closed this issue 2026-02-16 09:17:53 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/openwork#39