fix(core): use catalog small model for session titles#36563
Open
rekram1-node wants to merge 5 commits into
Open
fix(core): use catalog small model for session titles#36563rekram1-node wants to merge 5 commits into
rekram1-node wants to merge 5 commits into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Catalog.model.small(provider)when the title agent has no explicit modelTest plan
bun test test/session-title.test.tsinpackages/corebun typecheckinpackages/core