feat: Manual Execution Mode for Sub-Tasks
wsxiaoys opened this issue · comments
Please describe the feature you want
Currently, sub-tasks created with the newTask tool are executed in a fully automated mode. This is efficient for many scenarios, but it can be problematic when the sub-task requires user supervision or intervention. For example, if a sub-task is making significant changes to the codebase, the user might want to review the changes at each step before proceeding.
This feature request proposes a new permission or option that allows sub-tasks to be executed in a "manual" or "step-by-step" mode. In this mode, instead of running to completion automatically, navigate to sub task and exeute it as a normal "top-level" task.
Additional context
This feature would provide a much-needed level of control and oversight for complex or sensitive sub-tasks, making the newTask tool more versatile and robust. It would also improve the user experience by allowing for more interactive and supervised workflows.
Technical Implementation Details
From a preliminary search of the codebase, the relevant files for this feature seem to be:
packages/vscode-webui/src/components/tool-invocation/tools/new-task/use-live-sub-task.tsx: This hook appears to manage the lifecycle of sub-tasks, including the automatic execution flow.packages/livekit/src/chat/middlewares/new-task-middleware.ts: This middleware is likely responsible for intercepting thenewTasktool call and initiating the sub-task.packages/tools/src/new-task.ts: The definition of thenewTasktool itself.
A potential implementation could involve:
- Adding a new permission toggle
newTask
🤖 Generated with Pochi