feat: add dynamic window titles based on user messages#275
Closed
aryasaatvik wants to merge 4 commits intoanomalyco:devfrom
Closed
feat: add dynamic window titles based on user messages#275aryasaatvik wants to merge 4 commits intoanomalyco:devfrom
aryasaatvik wants to merge 4 commits intoanomalyco:devfrom
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
Contributor
|
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 |
Contributor
Author
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 |
aryasaatvik
added a commit
to AryaLabsHQ/opencoder
that referenced
this pull request
Jun 27, 2025
## 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
aryasaatvik
added a commit
to AryaLabsHQ/opencoder
that referenced
this pull request
Jun 27, 2025
## 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
aryasaatvik
added a commit
to AryaLabsHQ/opencoder
that referenced
this pull request
Jun 27, 2025
## 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
m-pa
pushed a commit
to m-pa/opencode
that referenced
this pull request
Dec 4, 2025
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
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