Skip to content

fix(status): show the delegating word while a Codex seat runs a sub-agent #406

Closed

Description

@liplus-lin-lay

目的

Codex の席でサブエージェントを動かしている間(spawn_agent / wait_agent)、席の表示を「委任中」にする。今は「委任中」を出す道がなく、マスターの画面では「実行中」と出ていた(2026-10-12 マスター観察)。

前提

  • 「委任中」は Claude Code の席の判定(crates/mcp-config/src/hook_activity.rs の SUBAGENT_WORD)にしかない。
  • Codex の席の判定(crates/mcp-config/src/codex/activity.rs)の Kind::of は、サブエージェントの item を対象から外している(コメント「a sub-agent's activity was not measured (research(status): find which signals tell tool use, permission waits and subagents per seat #324)」)。
  • Codex app-server の生成スキーマ(codex app-server generate-json-schema、codex-cli 0.162.1)では、サブエージェントの操作は item.type = "collabAgentToolCall" で届く。item.tool は spawnAgent / sendInput / resumeAgent / wait / closeAgent / sendMessage / followupTask / interruptAgent / listAgents のいずれか。
  • 実測(2026-10-12 20:50 JST):Luna の保存ログでは spawn_agent が 20:50:14.490、wait_agent が 20:50:17.590。probe log(codex-activity-probe.log)には、20:50:14.589 と 20:50:17.600 に親の item/started が届いている。probe は item の種類を残さないため、その2件が collabAgentToolCall であることは probe 上では未確認(仮説)。

制約

  • Kind に collabAgentToolCall を足し、語は「委任中」(Claude の席と同じ語)、行は item.tool を添えた形にする。
  • 子スレッドの通知は今どおり捨てる(この席のものではない)。
  • テストと docs/2-screen.md の該当表を同じ PR で直す。
  • 実機確認はマスターが行う。

対象ファイル

  • crates/mcp-config/src/codex/activity.rs
  • docs/2-screen.md

関連:#324

— Claude Lay

Activity

  1. added
    enhancement新機能・改善要望
    ready本文が実装開始できる形まで収束している状態。ただし更新は継続可能
    on Oct 12, 2026
  2. changed the title [-]fix(status): show 委任中 while a Codex seat runs a sub-agent[/-] [+]fix(status): show the delegating word while a Codex seat runs a sub-agent[/+] on Oct 12, 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

    enhancement新機能・改善要望ready本文が実装開始できる形まで収束している状態。ただし更新は継続可能

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions