zai-org / zai-org/feedback

【建议 / Feature】闲时任务不应强制绑定工作区目录:生活/提醒类任务无项目可选,建议支持 default 或「不绑定项目」

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

Nobody has claimed this yet.

priority: P2
Dominant language
No language data
Stars
22
Forks
1
PR merge metrics
No merged PRs in 30d

Description

环境
  • ZCode v3.9.1.5853(Windows 11 x64,build 10.0.26200)
  • GLM Coding Plan
现象

创建闲时任务时必须选择一个工作区目录才能提交,无法跳过,也没有「default / 全局」选项。

问题
  1. 大量闲时任务与任何代码项目无关——定时提醒、晨报、信息整理、收藏归档等生活/助理类任务,没有自然的「项目文件夹」可选,每次创建都被迫随手挑一个目录,纯粹是摩擦。
  2. 与普通任务的设计不一致:普通任务已有 default 工作区解决「不想选目录」的场景(不开项目也能直接用),闲时任务却没有享受到同一设计。
  3. 强制绑定目录有实际副作用
    • 原生 Memory 按工作区文件夹隔离,生活类闲时任务产生的记忆会落到随手选的目录名下,污染项目记忆;
    • 工作区即权限边界,给生活类任务随手绑一个代码项目,意味着它的读写范围落在错误的地方(要么不必要地进入项目目录,要么想访问的文件访问不到)。
建议
  1. 至少允许闲时任务绑定 default 工作区(与普通任务行为一致);
  2. 更进一步:提供「不绑定项目 / 全局」选项,或记住上次的选择作为默认值;
  3. 若出于安全边界考虑必须绑定目录,建议在创建 UI 明示「此任务将以该目录为权限边界与记忆归属」,避免用户不理解含义而随手乱选。

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

The payload names no source files, tests, or entry points. Start by locating the idle-task creation flow and comparing it with the ordinary-task default-workspace behavior. Done should allow an idle task to use a default or unbound workspace, while preserving clear memory ownership and permission boundaries.

Written by the indexing model from the issue text.

Assessment

Domain
design, desktop, security
Issue type
Feature
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.