[Bug] High memory/resource consumption: ZCode loads unopened projects into memory
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
性能 · Performance
涉及的 Agent 框架 · Agent framework
ZCode Agent(自研)
严重程度 · Severity
影响体验 · Major (功能可用但体验受损 / works but degraded)
复现频率 · Reproducibility
必现 · Always
问题描述 · Description
ZCode appears to load all projects into memory on startup or during use, rather than loading only the currently open project. This results in unnecessarily high resource consumption, as confirmed by Resource Manager, and scales poorly for users with multiple projects.
The application loads all projects into memory instead of limiting loading to the currently open project, leading to high resource usage.
Impact
Unnecessary memory/CPU usage that scales with the number of projects rather than the number of open projects — this can slow down the system, especially for users with many projects, and may lead to degraded performance or crashes on lower-resource machines.
复现步骤 · Steps to reproduce
- Have multiple projects available (not all open).
- Open only one project in ZCode.
- Open Resource Manager (or equivalent system monitor).
- Observe memory/resource usage is high, consistent with all projects being loaded rather than just the open one.
- See attached screenshot for reference.
期望表现 · Expected behavior
Only the currently open project should be loaded into memory. Other (non-open) projects should not consume system resources until they are actually opened.
实际表现 · Actual behavior
All projects are loaded into memory regardless of whether they are open, resulting in significantly higher-than-expected resource consumption (as shown in the attached Resource Manager screenshot).
ZCode 版本 · ZCode version
v3.12.3
设备 / 系统 / 浏览器 · Device / OS / Browser
Windows 11 25H2
截图 / 录屏 / 日志 · Screenshots / Recordings / Logs
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
No source file, test, or entry point is identified. Reproduce the issue on Windows 11 with multiple projects, compare resource usage with one project open, and trace when unopened projects are loaded. Done means unopened projects no longer consume resources until opened, with the behavior verified through a resource monitor.
Written by the indexing model from the issue text.
Assessment
- Domain
- performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100