Skip to content

fix(cli): honor agent model across run targets - #42569

Open
opencode-agent[bot] wants to merge 1 commit into
v2from
run-agent-model
Open

fix(cli): honor agent model across run targets#42569
opencode-agent[bot] wants to merge 1 commit into
v2from
run-agent-model

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add an opt-in session.select operation with explicit preserve, configured, and explicit model policies
  • resolve configured agent models under SessionLocationMiddleware after a bounded PluginSupervisor.flush
  • atomically publish agent/model Session changes and skip redundant durable selection events
  • apply explicit run selections after fresh, continued, explicit, or forked target resolution
  • preserve generic session.create({ agent }) model independence and defer missing-agent rejection to execution

Tests

  • bun test test/session-create.test.ts in packages/core (35 passed)
  • bun test test/session.test.ts test/model.test.ts in packages/server (2 passed)
  • bun test test/run/run.test.ts test/session-target.test.ts test/mini.test.ts test/run/noninteractive.test.ts in packages/cli (31 passed)
  • bun test test/promise.test.ts test/effect.test.ts in packages/client (29 passed)
  • bun typecheck in packages/core, packages/cli, packages/protocol, and packages/client
  • scoped lint (0 errors) and Prettier checks
  • regenerated client surfaces with bun run generate

Fixes #42561

Requested by: @neriousy (Filip via Slack)

@opencode-agent opencode-agent Bot changed the title fix(cli): respect run agent model fix(core): apply agent model during session creation Aug 14, 2026
@opencode-agent opencode-agent Bot changed the title fix(core): apply agent model during session creation fix(server): apply agent model during session creation Aug 14, 2026
@opencode-agent opencode-agent Bot changed the title fix(server): apply agent model during session creation fix(cli): honor agent model across run targets Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant