From 100da45f4a262a406f4f6514c8e480fef073ddfd Mon Sep 17 00:00:00 2001 From: Desmond Foo <102380796+SHINE-six@users.noreply.github.com> Date: Sat, 14 Mar 2026 17:13:55 +0800 Subject: [PATCH] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- pkg/tools/spawn_status.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkg/tools/spawn_status.go b/pkg/tools/spawn_status.go index fd17e1abc..03aeb21ca 100644 --- a/pkg/tools/spawn_status.go +++ b/pkg/tools/spawn_status.go @@ -25,10 +25,11 @@ func (t *SpawnStatusTool) Name() string { } func (t *SpawnStatusTool) Description() string { - return "Get the status of spawned subagents. " + - "Returns a list of all subagents and their current state " + - "(running, completed, failed, or canceled), or retrieves details " + - "for a specific subagent task when task_id is provided." + return "Get the status of spawned subagents associated with the current tool context " + + "(for example, the current channel or chat). Returns a list of all such subagents " + + "and their current state (running, completed, failed, or canceled), or retrieves " + + "details for a specific subagent task when task_id is provided. If the tool is " + + "invoked without any associated context, the result will be empty." } func (t *SpawnStatusTool) Parameters() map[string]any { @@ -38,7 +39,8 @@ func (t *SpawnStatusTool) Parameters() map[string]any { "task_id": map[string]any{ "type": "string", "description": "Optional task ID (e.g. \"subagent-1\") to inspect a specific " + - "subagent. When omitted, all known subagents are listed.", + "subagent. When omitted, all known subagents in the current tool context " + + "are listed; if the tool has no associated context, the result will be empty.", }, }, "required": []string{},