サブエージェント子セッションナビゲーションと@agentメンション#25
Merged
Merged
Conversation
… navigation The server sets child session titles as 'description (@agent subagent)', which caused exact title matching to always fail. Now uses a 3-strategy approach: (1) metadata.sessionId direct match, (2) title includes description, (3) title includes prompt.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
Issue #12 「サブエージェント子セッションのナビゲーション追加」の実装。
2つの機能を含む:
1. 子セッションナビゲーション
サブエージェントが生成した子セッションの内容をインラインで表示し、セッション間をナビゲーション可能にする。
description (@agent subagent)形式でタイトルを設定するため)2. @agent メンション
チャット入力で
@を入力するとサブエージェント候補がポップアップ表示され、選択してメッセージを送信できる。#のファイル添付ポップアップと同様のパターン)@トリガー検出、クエリフィルタリング、エージェント選択チップをコンテキストバー(ファイルチップの先頭)に表示getAgents()API、sendMessage でAgentPartInputを使用したサブエージェント呼び出しmode === "subagent" || mode === "all"のエージェントのみ表示(primary は除外)バグ修正
body.agentではなくAgentPartInputをparts配列に含めるよう修正metadata.sessionId直接マッチ + タイトル部分一致に改善テスト
コミット構成
d68c766feat: add getChildSessions API and child session protocol messages4bc3d70feat: add child session navigation UI with subtask display and back navigation38f9f59test: add child session navigation unit and scenario tests553417bfeat: add @agent mention SDK and protocol layer31e74a9feat: add @agent mention UI componentsf141710test: add agent mention unit and scenario tests86a90a7fix: filter agents to subagent-only and refresh child sessions on session.created60b7229test: update agent mention test to verify subagent-only filtering3d79a46fix: use AgentPartInput in parts instead of body.agent for subagent invocation39779f7feat: render task tool calls as subtask display instead of code block dump0b4ea19test: add task tool part rendering and isTaskToolPart tests08de313fix: use metadata sessionId and partial title match for child session navigation63a1273test: add findMatchingChild tests and server-format title matching tests446e1abstyle: move agent chip to context bar alongside file chips80eafcestyle: fix import ordering in MessageItemCloses #12