anomalyco / anomalyco/opencode

[FEATURE] task() API 的 description 参数应作为子 session 侧边栏标题

Open
#38,485 0 comments 0 reactions 1 assignee View on GitHub

@kitlangton is already working on this.

Since Jul 23, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

问题

使用 task() 创建子会话(subagent session)时,侧边栏的会话标题始终显示为 New session - 2026-07-23T07:25:58.458Z(ISO 时间戳),用户无法区分多个子会话。

task() 函数已支持 description 参数:

task(
  description="deviceAnalysis: 告警趋势改为静态数据",
  category="quick",
  prompt="..."
)

但这个 description 目前只是内部元数据,并未用作会话标题。

建议行为

description 参数的值作为子会话在侧边栏中显示的标题,取代默认的 New session - 时间戳 格式。

当前行为

  • task() 创建的子会话全部显示为 New session - 2026-07-23T07:25:58.458Z
  • 主会话可以获得有意义的自动命名,但子会话永远是 New session
  • description 参数存在但无可视效果

为什么重要

  • 用户拥有多个子会话时无法区分
  • 切换会话时破坏工作流程
  • 强迫用户每次都要点开查看才知道是哪个任务

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.