[Bug] Sub-agent model change requires application restart to take effect
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 22
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
提交前确认 · Pre-submission checklist
- 我已搜索过现有 issue,确认这不是重复 / I searched existing issues and confirmed this isn't a duplicate.
- 我已阅读 CONTRIBUTING.md / I've read CONTRIBUTING.md.
问题类别 · Category
对话 / Agent 交互 · Agent chat
涉及的 Agent 框架 · Agent framework
ZCode Agent(自研)
严重程度 · Severity
影响体验 · Major (功能可用但体验受损 / works but degraded)
复现频率 · Reproducibility
必现 · Always
问题描述 · Description
When changing the model of a sub-agent, the UI updates to reflect the new choice, but the system context is not re-initialized. It permanently locks onto the first loaded model and continues to use it until ZCode is completely restarted.
复现步骤 · Steps to reproduce
- Set the main agent to Model X.
- Set a sub-agent to Model Y.
- Trigger any action to initialize and use the sub-agent with Model Y.
- Go to settings and change the sub-agent's model to Model Z.
- Observe that the UI correctly displays Model Z as selected.
- Trigger the sub-agent action again.
期望表现 · Expected behavior
The system should dynamically re-initialize the sub-agent and execute the request using Model Z.
实际表现 · Actual behavior
The system continues to execute the request using Model Y (the change is purely visual in the UI).
Note: This was diagnosed because Model Y had an exhausted quota, causing subsequent requests to fail even after switching to Model Z. If the old model has a valid quota, it simply keeps running it silently.
ZCode 版本 · ZCode version
lastest + olders
设备 / 系统 / 浏览器 · Device / OS / Browser
Linux Mint
截图 / 录屏 / 日志 · Screenshots / Recordings / Logs
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue by initializing a sub-agent with Model Y, changing it to Model Z in settings, and triggering the action again. Trace the sub-agent model selection and initialization path; it is done when subsequent requests use Model Z without restarting ZCode.
Written by the indexing model from the issue text.
Assessment
- Domain
- ai
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100