#20146: fix(agents): use label and model in subagent completion announce
agents
size: XS
Cluster:
Model Management Enhancements
## Summary
Prefer `params.label` over agent id in subagent completion announce header.
Append child session model name when available (e.g. `claude-sonnet-4-6`).
Strip provider prefix from model name (e.g. `anthropic/claude-sonnet-4-6` → `claude-sonnet-4-6`).
**Before:** `✅ Subagent main finished` (always "main", no way to tell which task or model)
**After:** `✅ Subagent lint-fix (claude-sonnet-4-6) finished`
Graceful degradation: no label → agent id, no model → omit parenthetical.
## Changes
- `subagent-announce.ts`: Use `params.label || resolveAgentIdFromSessionKey()` for baseName; add `model` param; strip provider prefix from model
- `subagent-registry.ts`: Pass `model: entry.model` to announce flow
- Tests updated to match new format
Most Similar PRs
#11562: Fix #10883: Enforce subagent model configuration
by divol89 · 2026-02-08
67.0%
#23568: fix(agents): preserve multi-segment model IDs in splitModelRef
by arosstale · 2026-02-22
65.5%
#13376: fix: pass model directly to agent for sub-agent runs
by jrbobbyhansen-pixel · 2026-02-10
65.1%
#8893: fix: enhance subagent error reporting with diagnostic context
by joetomasone · 2026-02-04
65.0%
#22072: Fix responsePrefix {model} to use runtime model metadata
by graysurf · 2026-02-20
63.8%
#23166: fix(agents): restore subagent announce chain from #22223
by tyler6204 · 2026-02-22
63.5%
#7584: Tests: align subagent announce wait expectations
by justinhuangcode · 2026-02-03
63.2%
#20954: feat: per-agent model allowlist
by coletebou · 2026-02-19
63.2%
#7292: feat: Implement subagent model inheritance system
by levineam · 2026-02-02
63.2%
#11474: fix(cron): respect subagents.model in isolated cron sessions
by AnonO6 · 2026-02-07
62.9%