Skip to content

fix(core): use catalog small model for session titles - #36563

Closed
rekram1-node wants to merge 6 commits into
v2from
title-small-model
Closed

fix(core): use catalog small model for session titles#36563
rekram1-node wants to merge 6 commits into
v2from
title-small-model

Conversation

@rekram1-node

Copy link
Copy Markdown
Collaborator

Summary

  • Session title generation now prefers Catalog.model.small(provider) when the title agent has no explicit model
  • Falls back to the session model if no small model is available or resolution fails
  • Agent-configured title model still wins over both

Test plan

  • bun test test/session-title.test.ts in packages/core
  • bun typecheck in packages/core
  • Manual: first prompt in a new session titles with a cheaper model when one is available for the provider

Prefer Catalog.model.small over the session model when the title agent
has no explicit model, falling back to the session model if small
selection is unavailable.
Keep single-use model selection at the title generation call site.
Replace the opencode gpt-5-nano hardcode and cost/name heuristic with
V1-style family priority: newest model in gpt-nano / gemini-flash /
claude-haiku (with opencode and copilot family order, Bedrock region
prefix handling, and Azure skip). No small_model config.
Match V1 copilot title behavior by preferring picker-disabled utility
models before family priority, and cover title/small fallback edges.
Move copilot utility-model preference out of core selection into the
github-copilot plugin by exposing catalog.model.small set/get/remove on
the transform draft.
@github-actions

Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

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