forked from anomalyco/opencode
-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add dynamic status verbs #2
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
Merged
Merged
Conversation
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
- 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
- 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
… related API requests
aryasaatvik
added a commit
that referenced
this pull request
Jun 27, 2025
## 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
aryasaatvik
added a commit
that referenced
this pull request
Jun 27, 2025
## 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
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