Skip to content

Conversation

@qdaxb
Copy link
Contributor

@qdaxb qdaxb commented Mar 14, 2025

Context

add new task command, so users can start new task from command palette, or from other plugins.

Implementation

  1. add roo-cline.newTask command
  2. add new task prompt template

Screenshots

before after

image
image

How to Test

Get in Touch


Important

Add roo-cline.newTask command to start new tasks via command palette or plugins, with user input handling in handleTask.ts.

  • Behavior:
    • Add roo-cline.newTask command in package.json to start new tasks from the command palette or other plugins.
    • Implement handleNewTask function in handleTask.ts to prompt user input and handle task creation.
  • Command Registration:
    • Register roo-cline.newTask in registerCommands.ts to link the command with handleNewTask.
  • Prompt Template:
    • Add NEW_TASK prompt template in support-prompt.ts for user input handling.

This description was created by Ellipsis for b8b6e30b291b5cae96c341ce862da406154c2af9. It will automatically update as commits are pushed.

@changeset-bot
Copy link

changeset-bot bot commented Mar 14, 2025

⚠️ No Changeset found

Latest commit: a7ca93e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement New feature or request labels Mar 14, 2025
@qdaxb qdaxb force-pushed the support_new_task_command branch from b8b6e30 to ada4513 Compare March 14, 2025 13:08
ipattis pushed a commit to ipattis/roo-code that referenced this pull request Mar 15, 2025
…est to use. (RooCodeInc#1648)

* add alibaba qwen-max qwen-plus qwen-turbo qwen-coder-plus  stable/latest models

* add alibaba qwen-max qwen-plus qwen-turbo qwen-coder-plus  stable/latest models

* Provide the api line choice for international user

* Remove redundant code

* Copy fixes

* Create dry-socks-talk.md

---------

Co-authored-by: Saoud Rizwan <[email protected]>
@hannesrudolph hannesrudolph moved this from New to PR [Pre Approval Review] in Roo Code Roadmap Mar 17, 2025
@cte
Copy link
Collaborator

cte commented Mar 17, 2025

We've gotten some feedback that there are too many code actions. I wonder if there's a way to behave a bit more like cursor and try to combine everything into a single action. In particular something like Ctrl+L that opens a new task and injects anything that was highlighted as context. The Explain / Fix / Improve / etc can be handled by modes rather than separate actions.

@qdaxb
Copy link
Contributor Author

qdaxb commented Mar 18, 2025

We've gotten some feedback that there are too many code actions. I wonder if there's a way to behave a bit more like cursor and try to combine everything into a single action. In particular something like Ctrl+L that opens a new task and injects anything that was highlighted as context. The Explain / Fix / Improve / etc can be handled by modes rather than separate actions.

I agree with your idea about ctrl+l, but the main purpose of this pr is to provide a calling entry for other plug-ins or automation tools, which can directly invoke and execute new tasks through commands without interacting with users.

Comment on lines 144 to 148
NEW_TASK: {
label: "Start New Task",
description: "Start new task with user input",
template: `\${userInput}`,
},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it need to be added here?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just thinking that this adds another tab at the bottom of the prompts view right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my scenario, other plugins will send tasks to Roo, and I hope Roo can define its own prompt words when receiving instructions from other plugins.

In addition, because this pr also supports users to create tasks directly through the command palette, this option can also be used for users to define their own "quick start" prompt words.

Copy link
Collaborator

@cte cte Mar 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this work for the problem you're trying to solve?
https://github.com/RooVetGit/Roo-Code/blob/878b3820d2f41809f6063c5c54597d6bf0d3c591/src/exports/roo-code.d.ts#L24-L31

This should allow other extensions to interface with Roo Code. Or is it more convenient to use an action?

Copy link
Contributor Author

@qdaxb qdaxb Mar 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API can meet the needs, but I think command is more convenience. it can be called from the command palette, shortcut keys, other plugins or the command line

@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Mar 25, 2025
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Mar 25, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 25, 2025
@mrubens mrubens merged commit 0bc4f30 into RooCodeInc:main Mar 25, 2025
10 checks passed
@github-project-automation github-project-automation bot moved this from PR [Pre Approval Review] to Done in Roo Code Roadmap Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants