Skip to content

Conversation

@aryasaatvik
Copy link
Member

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

  • Test verb generation API endpoint
  • Verify verb cycling functionality works correctly
  • Ensure editor properly displays dynamic verbs
  • Check OpenAPI spec is correctly generated
CleanShot.2025-06-20.at.23.53.35.mp4

- 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
@aryasaatvik aryasaatvik merged commit 0b8ab4f into dev Jun 27, 2025
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant