Repository navigation
Conversation
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
|
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:
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. |
|
Why did you close this PR? |
Issue for this PR
Closes #25344
Type of change
What does this PR do?
When provider.getSmallModel() fails (no small model configured) or returns Option.None, the ?? operator in ensureTitle doesn't handle either case properly:
In both scenarios, mdl ends up as an invalid model, the LLM stream fails, and the session title is never generated — leaving it permanently as "New session - ...".
The fix replaces ?? with Effect.orElse() for proper Effect-TS error recovery, ensuring the main model is always used as a fallback.
How did you verify your code works?
Confirmed by testing locally: without the fix, all new sessions remain stuck with the default title regardless of message count. The fix ensures the model fallback chain works correctly when no small model is configured.
Checklist