Allow model catalogs to override the V2 spawn_agent description (#46123)

## What changed

Read the static V2 `spawn_agent` description from `model_messages.tools.multi_agent.spawn_agent.description`, independently of the runtime tool namespace. Missing or null values retain the bundled description; an empty string suppresses it.

Preserve generated model guidance, local usage hints, and tool parameters when applying an override. Resolve the description from the active model so it follows mid-turn model changes.

## Testing

Add coverage for sparse and empty catalog values, preservation of generated context and outbound tool schemas, and description updates after mid-turn model changes.

GitOrigin-RevId: 96cfa180f8f374dc868e4fabc337e49380e405da
This commit is contained in:
rhan-oai authored and copyberry committed 2026-09-17 05:17:31 +00:00
1 parent a4ee536f01
commit c5d079470e
11 files changed
+349 -74

No files matched your search

+1
View File
@@ -182,6 +182,7 @@ mod skill_approval;
mod skills;
mod skills_extension;
mod spawn_agent_description;
mod spawn_agent_tool_descriptions;
mod sqlite_state;
mod startup_cancellation;
mod step_settings;