[PR #34] [CLOSED] feat: add deepseek support, settings access, and model persistence #42

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/34
Author: @warrofua
Created: 1/18/2026
Status: Closed

Base: mainHead: deepseek-settings-model-persistence


📝 Commits (4)

  • 0f08307 feat: add deepseek support, settings access, and model persistence
  • 9c2525c fix: keep large checkpoints and restore serialized messages
  • bf0613e Merge origin/main
  • c667dfd fix: restore serialized checkpoint message fields

📊 Changes

17 files changed (+694 additions, -28 deletions)

View changed files

📝 package-lock.json (+18 -0)
src/main/agent/deepseek-model.ts (+192 -0)
📝 src/main/agent/runtime.ts (+50 -5)
📝 src/main/checkpointer/sqljs-saver.ts (+1 -1)
📝 src/main/ipc/models.ts (+29 -1)
📝 src/main/storage.ts (+1 -0)
📝 src/main/types.ts (+1 -1)
📝 src/preload/index.d.ts (+4 -0)
📝 src/preload/index.ts (+8 -0)
📝 src/renderer/src/components/chat/ApiKeyDialog.tsx (+2 -1)
📝 src/renderer/src/components/chat/ContextUsageIndicator.tsx (+4 -0)
📝 src/renderer/src/components/chat/ModelSwitcher.tsx (+14 -1)
src/renderer/src/components/settings/SettingsDialog.tsx (+265 -0)
📝 src/renderer/src/components/sidebar/ThreadSidebar.tsx (+24 -10)
src/renderer/src/components/ui/switch.tsx (+30 -0)
📝 src/renderer/src/lib/thread-context.tsx (+50 -7)
📝 src/renderer/src/types.ts (+1 -1)

📄 Description

Summary

  • add DeepSeek models/provider support with reasoning_content passthrough for tool calls (per DeepSeek thinking-mode docs)
  • expose Settings dialog in the UI, add API key management and auto-approve toggle
  • persist selected model as the global default and restore it on startup

Settings UI access point:
Screenshot 2026-01-18 at 3 48 03 PM

Settings menu w/ auto-approve toggle:
Screenshot 2026-01-18 at 3 48 50 PM

Deepseek integration w/ model selection in UI:
Screenshot 2026-01-18 at 3 49 27 PM

Testing

  • npm run typecheck
  • npm run lint (repo-wide existing lint errors unrelated to this change)
  • manual: verified DeepSeek selection + Reasoner, settings dialog opens, API key save, auto-approve toggle works, model selection persists across restart

🔄 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/34 **Author:** [@warrofua](https://github.com/warrofua) **Created:** 1/18/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `deepseek-settings-model-persistence` --- ### 📝 Commits (4) - [`0f08307`](https://github.com/langchain-ai/openwork/commit/0f083078c608a92f2e043857fe7e828be57ce270) feat: add deepseek support, settings access, and model persistence - [`9c2525c`](https://github.com/langchain-ai/openwork/commit/9c2525c9a747af5de0f972ed1dba86b1a9bae41b) fix: keep large checkpoints and restore serialized messages - [`bf0613e`](https://github.com/langchain-ai/openwork/commit/bf0613e1796689f7e088eaf96e206ba9d507281b) Merge origin/main - [`c667dfd`](https://github.com/langchain-ai/openwork/commit/c667dfdd547d3c891f8dab40c5d074614889f0a5) fix: restore serialized checkpoint message fields ### 📊 Changes **17 files changed** (+694 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `package-lock.json` (+18 -0) ➕ `src/main/agent/deepseek-model.ts` (+192 -0) 📝 `src/main/agent/runtime.ts` (+50 -5) 📝 `src/main/checkpointer/sqljs-saver.ts` (+1 -1) 📝 `src/main/ipc/models.ts` (+29 -1) 📝 `src/main/storage.ts` (+1 -0) 📝 `src/main/types.ts` (+1 -1) 📝 `src/preload/index.d.ts` (+4 -0) 📝 `src/preload/index.ts` (+8 -0) 📝 `src/renderer/src/components/chat/ApiKeyDialog.tsx` (+2 -1) 📝 `src/renderer/src/components/chat/ContextUsageIndicator.tsx` (+4 -0) 📝 `src/renderer/src/components/chat/ModelSwitcher.tsx` (+14 -1) ➕ `src/renderer/src/components/settings/SettingsDialog.tsx` (+265 -0) 📝 `src/renderer/src/components/sidebar/ThreadSidebar.tsx` (+24 -10) ➕ `src/renderer/src/components/ui/switch.tsx` (+30 -0) 📝 `src/renderer/src/lib/thread-context.tsx` (+50 -7) 📝 `src/renderer/src/types.ts` (+1 -1) </details> ### 📄 Description ## Summary - add DeepSeek models/provider support with reasoning_content passthrough for tool calls (per DeepSeek thinking-mode docs) - expose Settings dialog in the UI, add API key management and auto-approve toggle - persist selected model as the global default and restore it on startup Settings UI access point: <img width="229" height="92" alt="Screenshot 2026-01-18 at 3 48 03 PM" src="https://github.com/user-attachments/assets/09dbdb30-670a-4e98-abea-6f14d1874ba5" /> Settings menu w/ auto-approve toggle: <img width="499" height="800" alt="Screenshot 2026-01-18 at 3 48 50 PM" src="https://github.com/user-attachments/assets/3b6f7046-b2b1-4202-9b68-ec2ef4ee2703" /> Deepseek integration w/ model selection in UI: <img width="418" height="293" alt="Screenshot 2026-01-18 at 3 49 27 PM" src="https://github.com/user-attachments/assets/3952ea30-520c-4de2-8070-1a8403974249" /> ## Testing - npm run typecheck - npm run lint (repo-wide existing lint errors unrelated to this change) - manual: verified DeepSeek selection + Reasoner, settings dialog opens, API key save, auto-approve toggle works, model selection persists across restart --- <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#42