Skip to content

Harness: SendMessage should accept subagent names and ids when agent teams are off #272

Open

Description

@GoDiao

Part of #270. Finding: T-TOOL-01.

The Agent tool description (src/tools/AgentTool/prompt.ts:267) and every Agent result (src/tools/AgentTool/AgentTool.tsx:1336,1379) tell the model to continue a subagent with SendMessage and its id. Since #239, SendMessage is enabled for session links, but its input check rejects anything but session:<id> when agent teams are off (src/tools/SendMessageTool/SendMessageTool.ts:656-662). The routing that queues a message to a running subagent or resumes a stopped one (SendMessageTool.ts:779-847) does not need agent teams, but never runs.

What to do

  • In the input check, accept session:<id>, a registered subagent name and a well-formed agent id. Teammate names and * still require agent teams.
  • Synchronous subagents are not registered by name, so the Agent description should say "agent id" where only the id works.

Done when

A test sends SendMessage with an agent id while agent teams are off and the subagent receives the message (queued when running, resumed when stopped); a teammate name is still rejected.

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

    bugdifficulty:1good first issue

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions