Skip to content

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

Open
rekram1-node wants to merge 5 commits into
v2from
title-small-model
Open

fix(core): use catalog small model for session titles#36563
rekram1-node wants to merge 5 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.
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