fix(cli): restore automatic session titles - #10998
Conversation
Code Review SummaryStatus: No Issues Found | Recommendation: Merge The fix is clean and the approach is sound. Both bugs are addressed correctly:
One observation (not a blocker): the Tests in both Files Reviewed (5 files)
Fix these issues in Kilo Cloud Reviewed by claude-4.6-sonnet-20260217 · 601,699 tokens Review guidance: REVIEW.md from base branch |
fix(cli): restore automatic session titles
Automatic session titles can silently remain as timestamp placeholders when the configured
small_modelrequires reasoning. The title request currently disables reasoning for Google models, so a model such askilo/google/gemini-3.5-flashrejects it with HTTP 400:Reasoning is mandatory for this endpoint and cannot be disabled.The title request also reuses the main session ID as its Kilo Gateway task ID. An upstream merge reverted the dedicated title ID, allowing the title request and main agent request to collide when they run concurrently.
Reproduction:
small_modelaskilo/google/gemini-3.5-flash.x-kilo-taskvalue based on the session ID.This restores a dedicated
title-<sessionID>task identity for title generation. Small requests now use model capabilities instead of model-name checks: non-reasoning models receive no reasoning option, while reasoning-capable models enable the provider-supported default without assuming thatminimal,low, or another effort level exists.