Repository navigation
Closed
Description
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-serverbinary sha256:838507c551065024841c2a67186f3076e7d4f62717cd407de26cb30d21cce5df- Agent: Grok CLI 1.0.77
- OS: Linux x64
- 运行方式: Codeg server(Docker),Web UI
现象
- 后台启动多个
spawn_subagent(subagentBackground=true)后,工具卡立即结算;运行期间看不到每个子智能体的工具数、轮数、已运行时长或上下文占用。 - 前台 spawn 时工具卡会保持运行,但卡片里同样没有上述明细。
- 父回合结束后,也没有稳定的入口打开某个子智能体的 transcript;刷新后更明显。
最小复现
- 在 Grok 会话里调用
spawn_subagent,使用后台模式,任务用sleep 60; echo done这类无副作用命令。 - 在子智能体运行期间观察 Codeg:只有 spawn 卡片,没有逐个 running 状态。
- 等父回合结束后重新打开会话,观察子会话入口。
证据
- 在我这里的所有 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轮询?
关联
- 缺乏派发subagent状态的监视 #428 通用需求「缺乏派发subagent状态的监视」
- feat(aux-panel): native sub-agent child tabs, right-edge rail, two-column session details #784 native sub-agent child tabs(仍未合并)
- Grok delegation never reaches completed: child writes its final reply but the task stays running forever (identical Codex delegation completes) #551 / Complete grok turns when the session/prompt response is lost #553 Grok delegation 不结束(另一个问题)
想确认
- Codeg 是否计划调用 Grok 的
x.ai/subagent/list/view来做运行中状态? - Grok 1.0.77 在什么条件下才会发
subagent_progress?后台子智能体能否发? - feat(aux-panel): native sub-agent child tabs, right-edge rail, two-column session details #784 是否还计划合并?
Metadata
Metadata
Assignees
Labels
No labels
Activity
xintaofei commentedon Nov 10, 2026
codeg work task
488is done — merged locally intomainas0fe09eb(9 files, +383/-44).fix(grok): show background sub-agents' live progress after the turn ends
# Release version 0.42.2