-
Notifications
You must be signed in to change notification settings - Fork 6.5k
feat: add dynamic window titles based on user messages #275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Implement formatWindowTitle function to set dynamic window titles based on submitted messages - Update window title on message send and reset when processing is complete - Maintain lastSubmittedMessage and wasProcessing state for accurate title updates
- Implement /session_generate_title endpoint to generate concise titles for messages - Add generateTitle function in Session namespace to handle title generation logic - Introduce windowTitle function in SystemPrompt to retrieve the title prompt from a new file
- Introduce PostSessionGenerateTitleJSONBody for request parameters - Implement PostSessionGenerateTitle and PostSessionGenerateTitleWithBody methods in the client - Add response parsing for PostSessionGenerateTitleResponse - Update OpenAPI spec to include /session_generate_title endpoint with request and response schemas
- Add WindowTitleMsg type for window title updates - Introduce GenerateWindowTitle method to handle title generation logic - Update app model to asynchronously set window title based on generated titles
2779ffd to
1b5d653
Compare
|
this is very cool i want to clean up our system for doing conditional stuff per provider so let me play with that first before i merge this |
thank you! for smaller tasks like generating verbs and window title i think it would be better to store 2 models (lightweight and main) in the config. i will finish #279 tomorrow |
## Summary This PR implements dual model support (main + turbo) for cost-optimized operations and adds model sorting functionality. ### Key Changes #### Dual Model Support - Added `turbo_model` and `turbo_cost_threshold` config options - New dual-pane model selector (Tab to switch panes) - Visual indicators: ⚡ (turbo), 🧠 (reasoning), 🔧 (tools) - Smart turbo model selection with fallback logic - Fixed Anthropic auth showing incorrect turbo status #### Model Sorting - Added `release_date` and `last_updated` fields to model schema - Press 'S' to cycle through sort modes: Name, Last Updated, Release Date - Stable multi-level sorting with consistent ordering - Helps discover newest models and track updates ### Impact Enables cost optimization for PRs anomalyco#269 (status verbs) and anomalyco#275 (window titles) to use configured turbo models instead of hardcoded ones. ### Demo https://github.com/user-attachments/assets/d076e840-d790-4e23-8cf7-a179282d1f0b
## Summary This PR implements dual model support (main + turbo) for cost-optimized operations and adds model sorting functionality. ### Key Changes #### Dual Model Support - Added `turbo_model` and `turbo_cost_threshold` config options - New dual-pane model selector (Tab to switch panes) - Visual indicators: ⚡ (turbo), 🧠 (reasoning), 🔧 (tools) - Smart turbo model selection with fallback logic - Fixed Anthropic auth showing incorrect turbo status #### Model Sorting - Added `release_date` and `last_updated` fields to model schema - Press 'S' to cycle through sort modes: Name, Last Updated, Release Date - Stable multi-level sorting with consistent ordering - Helps discover newest models and track updates ### Impact Enables cost optimization for PRs anomalyco#269 (status verbs) and anomalyco#275 (window titles) to use configured turbo models instead of hardcoded ones. ### Demo https://github.com/user-attachments/assets/d076e840-d790-4e23-8cf7-a179282d1f0b
## Summary This PR implements dual model support (main + turbo) for cost-optimized operations and adds model sorting functionality. ### Key Changes #### Dual Model Support - Added `turbo_model` and `turbo_cost_threshold` config options - New dual-pane model selector (Tab to switch panes) - Visual indicators: ⚡ (turbo), 🧠 (reasoning), 🔧 (tools) - Smart turbo model selection with fallback logic - Fixed Anthropic auth showing incorrect turbo status #### Model Sorting - Added `release_date` and `last_updated` fields to model schema - Press 'S' to cycle through sort modes: Name, Last Updated, Release Date - Stable multi-level sorting with consistent ordering - Helps discover newest models and track updates ### Impact Enables cost optimization for PRs anomalyco#269 (status verbs) and anomalyco#275 (window titles) to use configured turbo models instead of hardcoded ones. ### Demo https://github.com/user-attachments/assets/d076e840-d790-4e23-8cf7-a179282d1f0b
f16de3d to
cc0d460
Compare
772b621 to
eb855e1
Compare
f1dc981 to
3e15a39
Compare
f8ee907 to
6a9856d
Compare
Summary
Implementation Details
/session_generate_titleendpoint in TypeScript servertitle-window.txtprompt file for concise title generationTest Plan
CleanShot.2025-06-21.at.01.54.50.mp4