Skip to content

Conversation

@github-actions
Copy link
Contributor

Automated Fix by Amber Agent

This PR addresses issue #478 using the Amber background agent.

Changes Summary

  • Action Type: auto-fix
  • Commit: 4c1c139
  • Triggered by: Issue label/command

Pre-merge Checklist

  • All linters pass
  • All tests pass
  • Changes follow project conventions (CLAUDE.md)
  • No scope creep beyond issue description

Reviewer Notes

This PR was automatically generated. Please review:

  1. Code quality and adherence to standards
  2. Test coverage for changes
  3. No unintended side effects

🤖 Generated with Amber Background Agent

Closes #478

Add a "Refine Prompt" button to the session creation form that helps users improve their prompts with AI-powered suggestions. The button uses heuristic-based refinement to add context, clarity, and structure to prompts.

Features:
- Button appears below the prompt textarea in non-interactive mode
- Uses Sparkles icon to indicate AI enhancement
- Shows loading state during refinement
- Provides instant feedback via toast notifications
- Disabled when prompt is too short (< 5 characters)

Implementation:
- Added refinePrompt() function with simple heuristics:
  - Short prompts: Adds context and structure
  - Unclear prompts: Adds action verbs and recommendations
  - Single-line prompts: Adds structured output format
- Added Sparkles icon import from lucide-react
- Follows existing button patterns with loading states

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@github-actions github-actions bot added amber-generated PR created by Amber background agent auto-fix labels Dec 18, 2025
@github-actions github-actions bot mentioned this pull request Dec 18, 2025
25 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

amber-generated PR created by Amber background agent auto-fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Prompt Refine Button

1 participant