Skip to content
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

feat: Add --redo functionality #65

Merged
merged 8 commits into from
Aug 3, 2024
Merged

Conversation

gmickel
Copy link
Owner

@gmickel gmickel commented Aug 3, 2024

This PR introduces a new 'redo' feature for AI-assisted tasks in CodeWhisper. This enhancement allows users to easily restart their last task from the review plan stage, providing more flexibility and efficiency in the AI-assisted coding process.

Key changes:

  1. Implemented a new redoLastTask function in src/ai/redo-task.ts.
  2. Updated task-workflow.ts to support the redo functionality.
  3. Added a new --redo option to the CLI command in src/cli/index.ts.
  4. Introduced TaskCache class for storing and retrieving task data.
  5. Updated existing tests and added new unit tests for the redo feature.

New features:

  • Users can now redo their last task using the --redo flag.
  • Allows users to fine-tune their plan to improve results
  • Option to change the AI model or file selection when redoing a task.
  • Cached task data (including selected files, generated plan, task description, and instructions) is used for redo operations.

This feature improves the user experience by allowing quick iterations on AI-assisted tasks without the need to manually re-enter task details or file selections. It's particularly useful for refining AI-generated plans or trying different AI models for the same task.

Closes: #61

@gmickel gmickel self-assigned this Aug 3, 2024
@gmickel gmickel added the enhancement New feature or request label Aug 3, 2024
@gmickel gmickel merged commit 60c262a into main Aug 3, 2024
6 checks passed
github-actions bot pushed a commit that referenced this pull request Aug 3, 2024
# [1.10.0](v1.9.0...v1.10.0) (2024-08-03)

### Features

* Add --redo functionality ([#65](#65)) ([60c262a](60c262a))
Copy link

github-actions bot commented Aug 3, 2024

🎉 This issue has been resolved in version 1.10.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@gmickel gmickel deleted the feature/add-redo-functionality branch August 3, 2024 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature: add an option to start the task workflow from a previously created plan
1 participant