mirror of
https://github.com/langchain-ai/openwork.git
synced 2026-07-19 14:43:32 -04:00
[PR #14] [MERGED] fix: pass selected model to backend when invoking agent #27
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langchain-ai/openwork/pull/14
Author: @MohtashamMurshid
Created: 1/17/2026
Status: ✅ Merged
Merged: 1/17/2026
Merged by: @hntrl
Base:
main← Head:fix/pass-selected-model-to-backend📝 Commits (1)
05e59aafix: pass selected model to backend when invoking agent📊 Changes
4 files changed (+29 additions, -20 deletions)
View changed files
📝
src/main/ipc/agent.ts(+9 -7)📝
src/preload/index.ts(+7 -5)📝
src/renderer/src/components/chat/ChatContainer.tsx(+6 -3)📝
src/renderer/src/lib/electron-transport.ts(+7 -5)📄 Description
Summary
Changes
The fix passes
modelIdthrough the entire IPC chain:model_idinstream.submit()configmodel_idfrom config and pass tostreamAgent()modelIdin IPC messages to main processmodelIdand pass tocreateAgentRuntime()Test plan
Fixes #12
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.