Skip to content

Grok 1.0.77 原生子智能体:运行中没有状态,结束后没有子会话入口(v0.42.1) #1109

Closed

Description

@momomomo820

Summary (English)

In Codeg 0.42.1, Grok native subagents started with spawn_subagent have no live status while they run. Background launches settle their tool card immediately, and the only lifecycle events observed are subagent_spawned / subagent_finished — never subagent_progress. After the parent turn ends there is also no stable child-session entry, even though the child transcripts exist on disk.

环境

  • Codeg: 0.42.1,官方 codeg-server-linux-x64
  • codeg-server binary sha256: 838507c551065024841c2a67186f3076e7d4f62717cd407de26cb30d21cce5df
  • Agent: Grok CLI 1.0.77
  • OS: Linux x64
  • 运行方式: Codeg server(Docker),Web UI

现象

  • 后台启动多个 spawn_subagent(subagentBackground=true)后,工具卡立即结算;运行期间看不到每个子智能体的工具数、轮数、已运行时长或上下文占用。
  • 前台 spawn 时工具卡会保持运行,但卡片里同样没有上述明细。
  • 父回合结束后,也没有稳定的入口打开某个子智能体的 transcript;刷新后更明显。

最小复现

  1. 在 Grok 会话里调用 spawn_subagent,使用后台模式,任务用 sleep 60; echo done 这类无副作用命令。
  2. 在子智能体运行期间观察 Codeg:只有 spawn 卡片,没有逐个 running 状态。
  3. 等父回合结束后重新打开会话,观察子会话入口。

证据

  • 在我这里的所有 Grok 会话中,subagent_progress 事件为 0 条;一个包含 15 个后台子智能体的会话有 15 条 subagent_spawned + 15 条 subagent_finished,仍然 0 条 progress。
  • 每个子智能体的完整 transcript 都在 ~/.grok/sessions/<cwd-slug>/<child_session_id>/updates.jsonl,数据是齐的。
  • Grok 1.0.77 暴露了 x.ai/subagent/list、x.ai/subagent/get、x.ai/subagent/view、x.ai/subagent/cancel、x.ai/subagent/message。
  • Codeg 0.42.1 的 codeg-server 二进制里没有 x.ai/subagent 字符串,src-tauri/src/acp/connection.rs 也没有调用这些查询接口;它只消费 subagent_spawned / subagent_finished 推送。
  • Codeg 的消费端已经支持 subagent_progress → grokSubagentProgress,但生产端没有数据。

期望

  • 子智能体运行期间,至少在 spawn 卡片或侧栏显示 running 状态、已运行时长、工具数;最好能直接打开 child transcript。
  • 父回合结束后保留同一个入口和最后状态,不只依赖实时 meta。
  • 如果 subagent_progress 不是默认推送,能否由 Codeg 调用 x.ai/subagent/list / view 轮询?

关联

想确认

Activity

  1. xintaofei commented on Nov 10, 2026

    @xintaofei
    Collaborator

    codeg work task 488 is done — merged locally into main as 0fe09eb (9 files, +383/-44).

  2. added a commit that references this issue on Nov 10, 2026
    0fe09eb
  3. added a commit that references this issue on Nov 10, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions