Skip to content

feat(core): expose session model switching#31011

Merged
kitlangton merged 1 commit into
devfrom
feat/public-session-switch-model
Jun 5, 2026
Merged

feat(core): expose session model switching#31011
kitlangton merged 1 commit into
devfrom
feat/public-session-switch-model

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

  • expose the existing durable Core sessions.switchModel operation through the public OpenCode facade
  • preserve the typed missing-session error and exact model reference
  • enable embedded consumers such as OpenCord to switch a session model without reaching into internal services

Checks

  • OPENCODE_DB=:memory: bun run test public-opencode.test.ts
  • bun run typecheck in packages/core
  • repository typecheck commit hook
  • bunx prettier --check packages/core/src/public/opencode.ts packages/core/src/public/session.ts packages/core/test/public-opencode.test.ts
  • git diff --check origin/dev...HEAD

@kitlangton kitlangton merged commit a57fb32 into dev Jun 5, 2026
12 checks passed
@kitlangton kitlangton deleted the feat/public-session-switch-model branch June 5, 2026 19:55
ShamirSecret pushed a commit to ShamirSecret/auto-code-machine that referenced this pull request Jun 6, 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