feat: add dynamic status verbs#269
Closed
aryasaatvik wants to merge 7 commits intoanomalyco:devanomalyco/opencode:devfrom
aryasaatvik:feat/dynamic-status-verbsaryasaatvik/opencode:feat/dynamic-status-verbsCopy head branch name to clipboard
Closed
feat: add dynamic status verbs#269aryasaatvik wants to merge 7 commits intoanomalyco:devanomalyco/opencode:devfrom aryasaatvik:feat/dynamic-status-verbsaryasaatvik/opencode:feat/dynamic-status-verbsCopy head branch name to clipboard
aryasaatvik wants to merge 7 commits intoanomalyco:devanomalyco/opencode:devfrom
aryasaatvik:feat/dynamic-status-verbsaryasaatvik/opencode:feat/dynamic-status-verbsCopy head branch name to clipboard
Conversation
- Add generateStatusVerb function with Haiku/GPT-4o-mini fallback - Add /session_generate_verb endpoint - Generate contextual verbs based on user input with safety filters
- Add CurrentStatusVerb, VerbHistory, and VerbCycleIndex fields - Implement AddVerbToHistory with 10-item limit - Add CycleToNextVerb for reverse chronological cycling - Add GenerateStatusVerb client method
- Add verb generation with 800ms debouncing while typing - Add VerbCycleMsg for 2-second cycling during AI processing - Prevent duplicate verb generation on message submit - Add status line display with generated verbs
b4f5d96 to
a317ffc
Compare
- Replace CurrentStatusVerb and VerbHistory with PromptVerbs and VerbIndex - Implement AddPromptVerb, ResetPromptVerbs, and CycleToNextVerb methods - Adjust editor component to utilize new prompt verb management
…ompt - Move verb prompt text to a new file `verb.txt` - Update `SystemPrompt` to include a function for retrieving the verb prompt - Refactor `index.ts` to use the new verb prompt function
- Introduce verbText field to track the current verb text - Optimize verb generation logic to prevent unnecessary calls - Clean up lastProcessedText references and ensure clarity in state management
|
Whilst I like the personality this change provides, I'm not convinced I'd want to burn tokens on this for every message by default - even though it does only use the small models. If this is added it ideally would have a configuration option to enable/disable it - disabled by default. Perhaps the option could have a "local-only" setting, that would only run if you had a local model configured, which could also be a a safe default. |
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
m-pa
pushed a commit
to m-pa/opencode
that referenced
this pull request
Dec 4, 2025
Issue anomalyco#229 --------- Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> Co-authored-by: kommander <kommander@users.noreply.github.com> Co-authored-by: Matt Simpson <7691252+msmps@users.noreply.github.com>
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
Test plan
CleanShot.2025-06-20.at.23.53.35.mp4