Repository navigation
Expose resolved subagent model metadata - #80037
Conversation
|
Codex review: needs maintainer review before merge. Reviewed May 30, 2026, 1:48 PM ET / 17:48 UTC. Summary PR surface: Source +25, Tests +16, Docs +5. Total +46 across 6 files. Reproducibility: not applicable. this is an additive feature/API PR rather than a bug report. Source inspection and the PR's terminal smoke output show the intended metadata path. Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the additive metadata only after maintainers accept the public API contract and current-head checks are green. Do we have a high-confidence way to reproduce the issue? Not applicable: this is an additive feature/API PR rather than a bug report. Source inspection and the PR's terminal smoke output show the intended metadata path. Is this the best way to solve the issue? Mostly yes: the patch reuses the already-resolved subagent model plan and exposes the same metadata in the result and hook event. The only open question is the product/API decision to accept these exact public field names and semantics. AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against 9ef699fedccc. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +25, Tests +16, Docs +5. Total +46 across 6 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
f8c9bff to
93a4eb5
Compare
93a4eb5 to
c8877e0
Compare
|
Refreshing review/status against latest main. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
ClawSweeper PR egg ✨ Hatched: 💎 rare Neon Test Hopper Hatch commandComment Hatchability rules:
Rarity: 💎 rare. What is this egg doing here?
|
|
Heads up: this PR needs to be updated against current |
0d99089 to
fe71886
Compare
steipete
left a comment
There was a problem hiding this comment.
Reviewed after rebase onto current main.
Local proof:
- git diff --check origin/main...HEAD
- pnpm format:docs:check
- pnpm test src/agents/subagent-spawn.model-session.test.ts src/agents/sessions-spawn-hooks.test.ts
fe71886 to
3151b23
Compare
Co-authored-by: guanbear <[email protected]>
Co-authored-by: guanbear <[email protected]>
Summary
sessions_spawnresults.subagent_spawnedplugin hook events.Verification
git diff --checkpnpm exec oxfmt --check --threads=1 src/agents/subagent-spawn.ts src/plugins/hook-types.ts src/agents/subagent-spawn.model-session.test.ts src/agents/sessions-spawn-hooks.test.tspnpm format:docs:checkpnpm test src/agents/subagent-spawn.model-session.test.ts src/agents/sessions-spawn-hooks.test.tsReal behavior proof
sessions_spawnresults and thesubagent_spawnedlifecycle hook expose the resolved child model metadata instead of onlymodelApplied.f8c9bff, Nodev25.9.0, OpenClaw config loaded from the local user setup. This was a source-level runtime smoke with the gateway call boundary stubbed so the command could exercise the production spawn path without launching a real child LLM turn.pnpm exec tsx -e ...smoke that importedsrc/agents/subagent-spawn.ts, invokedspawnSubagentDirectwithmodel: "openai-codex/gpt-5.4", and captured the accepted result plus thesubagent_spawnedhook event.subagent_spawnedevent both containedresolvedModel: "openai-codex/gpt-5.4"andresolvedProvider: "openai-codex".