Skip to content

Make prompt enhancements visible and reversible#300

Merged
BunsDev merged 1 commit intomainfrom
okcode/prompt-enhancement-toggle
Apr 6, 2026
Merged

Make prompt enhancements visible and reversible#300
BunsDev merged 1 commit intomainfrom
okcode/prompt-enhancement-toggle

Conversation

@BunsDev
Copy link
Copy Markdown
Contributor

@BunsDev BunsDev commented Apr 6, 2026

Summary

  • Moves prompt enhancement behavior into the composer so enhanced prompts are shown directly in the UI instead of being hidden in provider input.
  • Adds reversible enhancement state tracking, including the original prompt, so selecting the same enhancement again restores the prior text.
  • Expands the prompt enhancement helper into visible, structured prompt templates and updates composer controls to handle enhancement loading state.
  • Updates draft persistence and browser test fixtures to carry the new enhancement state fields.

Testing

  • bun fmt
  • bun lint
  • bun typecheck
  • Not run: bun run test

- Render enhancement guidance directly in the composer instead of hidden provider input
- Persist the original prompt so enhanced prompts can be reverted cleanly
- Add enhancer loading state and update draft normalization/tests
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
okcode-marketing Ready Ready Preview Apr 6, 2026 0:30am
v0-compute-the-platform-to-build Ready Ready Preview, Open in v0 Apr 6, 2026 0:30am

@github-actions github-actions bot added the size:L label Apr 6, 2026
@github-actions github-actions bot added the vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. label Apr 6, 2026
@BunsDev BunsDev merged commit f1e3b94 into main Apr 6, 2026
10 of 11 checks passed
@BunsDev BunsDev deleted the okcode/prompt-enhancement-toggle branch April 6, 2026 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant