Skip to content

Conversation

@franekp
Copy link
Contributor

@franekp franekp commented Mar 15, 2025

Context

Related issue: #1656

We need this in roospawn to detect when Roo is done with current task and we can proceed with other tasks form the queue.

Implementation

Forward events from all created Cline's, not only those created via startNewTask.

Screenshots

None.

How to Test

Didn't test yet.

Get in Touch

Discord handle: franciszekpiszcz_15867


Important

ClineProvider now emits events for all tasks, and API class handles these events to manage task lifecycle.

  • Behavior:
    • ClineProvider now emits clineAdded event for all Cline instances, not just those started via startNewTask.
    • API class listens for clineAdded event and sets up listeners for message, taskStarted, taskPaused, taskUnpaused, taskAborted, and taskSpawned events on Cline instances.
  • Classes:
    • ClineProvider extends EventEmitter to emit events for all tasks.
    • API class in api.ts updated to handle clineAdded event and manage task events.
  • Misc:
    • Removed redundant event listeners in startNewTask method of API class.

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

@changeset-bot
Copy link

changeset-bot bot commented Mar 15, 2025

⚠️ No Changeset found

Latest commit: a06119a

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:S This PR changes 10-29 lines, ignoring generated files. enhancement New feature or request labels Mar 15, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 17, 2025
@cte cte merged commit 4fd5e44 into RooCodeInc:main Mar 17, 2025
10 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Mar 17, 2025
@franekp
Copy link
Contributor Author

franekp commented Mar 17, 2025

Hi @cte,

Thanks for merging our changes!
One thing: the clineAskResponded event got lost in a rebase. Here's fix: #1739

teddyOOXX pushed a commit to teddyOOXX/Roo-Code that referenced this pull request Mar 28, 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:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants