Skip to content

[Bug] 会话目标无法从界面清空,完成后也不会自动收尾 #899

Description

@olo12119

提交前确认 · Pre-submission checklist

  • 我已搜索过现有 issue,确认这不是重复 / I searched existing issues and confirmed this isn't a duplicate.
  • 我已阅读 CONTRIBUTING.md / I've read CONTRIBUTING.md.

问题类别 · Category

UI / 界面体验 · UI / UX

涉及的 Agent 框架 · Agent framework

ZCode Agent(自研)

严重程度 · Severity

影响体验 · Major (功能可用但体验受损 / works but degraded)

复现频率 · Reproducibility

必现 · Always

问题描述 · Description

会话目标(Goal)建立后,界面里没有任何清空入口,完成后也不会自动收尾。目标处于 paused 后,即使当天所有待办已完成、后台任务为 0,目标仍长期挂在状态面板上。状态面板目标行只有「暂停」「继续」两个按钮;语言包中存在「清空目标」(chat.target.clear / Clear goal) 词条,但全应用没有任何组件挂载它。在聊天输入框输入 /goal clear 无法发送;而 CLI 端注册的用法为 /goal [pause|resume|clear|replace ](命令名 goal,别名 target),说明 clear 属于官方设计的管理入口。最终只能直接修改本地数据库移除目标。

复现步骤 · Steps to reproduce

  1. 在桌面版建立会话目标,使其处于 paused(已暂停)状态
  2. 完成当天全部待办与后台任务,观察状态面板:目标仍持续显示,不收尾、不消失
  3. 在状态面板查找清空按钮——只有暂停/继续
  4. 在聊天输入框发送 /goal clear——无法发送,且无任何提示
  5. 直接删除本地数据库 ~/.zcode/cli/db/db.sqlite 中 session_target 表对应会话的行,目标区随即从面板消失,应用运行正常

期望表现 · Expected behavior

  1. 状态面板提供「清空目标」操作(词条已存在,疑似漏挂)
  2. 聊天输入框支持 /goal 指令,或在不可用时给出明确错误提示而不是无反应
  3. 目标长期处于 paused/完成态时,给出收尾或归档引导

实际表现 · Actual behavior

界面无清空入口;/goal clear 发不出去且无反馈;目标长期挂在面板上,只能修改数据库才能移除。

ZCode 版本 · ZCode version

3.14.4(Windows 桌面版;内置运行时 0.16.9)

设备 / 系统 / 浏览器 · Device / OS / Browser

Windows 11 x64(10.0.26200)/ Microsoft Edge

截图 / 录屏 / 日志 · Screenshots / Recordings / Logs

Image

Activity

  1. github-actions commented on Oct 1, 2026

    @github-actions

    👋 感谢你的反馈,我们已经收到。

    • 维护者看到后会尽快回复你。
    • 状态保持为 status: 待评估,你可以随时补充信息。
    • 信息不全时我们会打上 needs: 更多信息 标签并 @ 你。

    👋 Thanks — we've received your issue.

    • A maintainer will get back to you as soon as we can.
    • Status stays at status: 待评估 (Triage); feel free to add context.
    • If we need more details, we'll add needs: 更多信息 and ping you.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions