feat: add dynamic window titles based on user messages#475
Closed
aryasaatvik wants to merge 29 commits into
Closed
feat: add dynamic window titles based on user messages#475aryasaatvik wants to merge 29 commits into
aryasaatvik wants to merge 29 commits into
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
## 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
- Commented out the installation of makepkg and SSH setup for AUR in the GitHub Actions workflow. - Updated repository references in the publish script from 'sst' to 'AryaLabsHQ'. - Commented out SHA calculation and AUR package build sections in the publish script for future reference.
…lated files - Updated package names and references from 'opencode' to 'opencoder' across all relevant files. - Modified installation script and binary names to reflect the new project name. - Adjusted GitHub Actions workflow for publishing to use the new repository name. - Added '.opencoder' to .gitignore to exclude new project-specific files.
…eflect project name change
…opencode' to 'opencoder'
…ng of existing and model values
## Summary - Added dynamic verb generation API for status messages - Implemented verb history and cycling in app state - Integrated dynamic verb generation in the editor - Generated OpenAPI spec and client ## Test plan - [x] Test verb generation API endpoint - [x] Verify verb cycling functionality works correctly - [x] Ensure editor properly displays dynamic verbs - [x] Check OpenAPI spec is correctly generated https://github.com/user-attachments/assets/9e0c271d-1f2d-467a-bdfa-f2cb9332fe25
bussard76
pushed a commit
to bussard76/openwork
that referenced
this pull request
May 12, 2026
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