zai-org / zai-org/feedback

[Bug] High memory/resource consumption: ZCode loads unopened projects into memory

Open
#714 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

priority: P2 status: 待评估 type: Bug
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
  1. Have multiple projects available (not all open).
  2. Open only one project in ZCode.
  3. Open Resource Manager (or equivalent system monitor).
  4. Observe memory/resource usage is high, consistent with all projects being loaded rather than just the open one.
  5. 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
Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.