8000 fix: explicit subagent models and AbovePrompt composition (0.4.2) by dominicrico · Pull Request #10 · dominicrico/jev-router · GitHub
[go: up one dir, main page]

Skip to content

fix: explicit subagent models and AbovePrompt composition (0.4.2) - #10

Merged
dominicrico merged 1 commit into
mainfrom
fix/explicit-subagent-model-and-band-compose
Oct 12, 2026
Merged

dominicrico merged 1 commit into
mainfrom
fix/explicit-subagent-model-and-band-compose

Conversation

@dominicrico
Copy link
Copy Markdown
Owner

Two change requests, both reproduced first and both valid.

  1. agent.spawn skipped routing for an explicit model but recorded nothing, so the first turn.step called routeAgent and replaced it (explicit Opus ran on Haiku). Every spawn outcome is now recorded for the agent's lifetime (explicit model, routed pick, failed pick: null = no override), so a subagent never re-asks Jev behind a decision made at spawn.
  2. The AbovePrompt renderer returned only its own row without next(e), dropping other plugins' content, also with routing off. It now calls next(e) and composes: other content above, the band last right above the prompt; an empty tree beneath is ignored.

Tests added for both (explicit model with zero Jev calls, failed spawn pick not re-asked, other row kept with routing on and off). 55 tests pass, typecheck clean. Not run live in a terminal.

…nd with other AbovePrompt content (0.4.2)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@dominicrico
dominicrico merged commit 39712e3 into main Oct 12, 2026
2 checks passed
@dominicrico
dominicrico deleted the fix/explicit-subagent-model-and-band-compose branch October 12, 2026 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0