Skip to content

Conversation

@github-actions
Copy link
Contributor

Automated Fix by Amber Agent

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

Changes Summary

  • Action Type: execute-proposal
  • Commit: c3894cc
  • 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 #479

Add a "Refine Prompt" button to the chat interface that helps users improve their prompts with AI-powered suggestions using heuristic-based refinement.

Features:
- Button appears next to Settings in the chat controls
- Uses Sparkles icon to indicate AI enhancement
- Shows loading state during refinement (800ms simulated processing)
- Provides instant feedback by updating the textarea
- Disabled when prompt is too short (< 5 characters)
- Disabled during active agent runs or while sending messages

Implementation:
- Added handleRefinePrompt() function with three heuristics:
  - Short prompts (< 30 chars): Adds context and structure
  - Unclear prompts: Adds action verb prefix
  - Single-line prompts (> 50 chars): Adds structured output format
- Added Sparkles icon import from lucide-react
- Added refining state to track button loading status
- 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 execute-proposal labels Jan 24, 2026
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 execute-proposal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant