mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
* feat: add optional todos parameter to new_task tool with experimental setting (#6329) - Add optional todos parameter to new_task tool for hierarchical task planning - Implement experimental setting to optionally require todos parameter - Add clean state-based UI rendering to avoid spurious messages - Export and reuse parseMarkdownChecklist function - Add comprehensive test coverage for both optional and required modes - Maintain full backward compatibility (todos optional by default) * fix: update new_task tool example to include todos parameter - Updated the example in tool-use.ts to show the todos parameter - This prevents AI confusion about whether todos is a valid parameter - The example now demonstrates the complete tool usage pattern * fix: make new_task tool definition dynamic based on experimental setting - Tool description now changes based on newTaskRequireTodos setting - When disabled: shows todos as (optional) - When enabled: shows todos as (required) with no mention of configuration - Added tests to verify dynamic behavior - Ensures AI models get unambiguous instructions based on current settings * fix: add translations for newTaskRequireTodos experimental setting - Added translations for all 17 supported languages - Ensures consistent UI experience across all locales * test: update snapshots for new_task tool example with todos parameter - Updated 13 snapshot files to reflect the new tool-use example - All tests now pass with the updated example format * Update src/core/tools/newTaskTool.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix: address PR review comments - Replace any[] with TodoItem[] type in ExtensionStateContext.tsx for better type safety - Remove redundant initialTodos parameter from startTask call in Task.ts (todos already set in constructor) - Improve code clarity in newTaskTool.ts by checking provider reference early and reusing state # Conflicts: # src/core/task/Task.ts # webview-ui/src/context/ExtensionStateContext.tsx * fix: revert order of operations in startTask to fix integration test timeout The change in order of operations (calling say() before postStateToWebview()) was causing the XML content file test to timeout. Reverting to the original order fixes the issue. * fix: hide todos parameter from new_task tool prompt when experiment is disabled - Modified getNewTaskDescription to completely omit todos parameter when experiment is off - Updated tests to verify todos parameter is not shown at all when disabled - Ensures tool prompt remains unchanged when experimental setting is disabled - Maintains backward compatibility while providing cleaner prompt interface * fix: update snapshots for new_task tool todos parameter - Updated snapshots in add-custom-instructions.spec.ts - Updated snapshots in system-prompt.spec.ts - All tests now passing with the new todos parameter documentation * feat: move newTaskRequireTodos from experimental to VSCode settings - Added newTaskRequireTodos as a VSCode configuration property in src/package.json - Added description in src/package.nls.json - Updated newTaskTool.ts to read from VSCode configuration instead of experiments - Removed NEW_TASK_REQUIRE_TODOS from experimental settings in src/shared/experiments.ts - Removed newTaskRequireTodos from packages/types/src/experiment.ts - Updated tests to use VSCode configuration mocking instead of experiments - Removed references from experiments test file - Maintains backward compatibility (defaults to false) * fix: make new_task tool description dynamically reflect VSCode setting - Updated new-task.ts to check args.settings instead of args.experiments - Added newTaskRequireTodos to SystemPromptSettings interface - Pass newTaskRequireTodos setting through Task.ts and generateSystemPrompt.ts - Updated all related tests to use settings instead of experiments - Fixed TypeScript errors in test files by adding newTaskRequireTodos property This ensures the tool description correctly shows todos parameter as required/optional based on the VSCode setting value, fixing the issue where Roo would try to use new_task without the todos parameter when it was required. --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Merge Resolver <merge-resolver@roo-code.com> Co-authored-by: Roo Code <roomote@roocode.com>
44 lines
3.4 KiB
JSON
44 lines
3.4 KiB
JSON
{
|
|
"extension.displayName": "Roo Code",
|
|
"extension.description": "A whole dev team of AI agents in your editor.",
|
|
"views.contextMenu.label": "Roo Code",
|
|
"views.terminalMenu.label": "Roo Code",
|
|
"views.activitybar.title": "Roo Code",
|
|
"views.sidebar.name": "Roo Code",
|
|
"command.newTask.title": "New Task",
|
|
"command.mcpServers.title": "MCP Servers",
|
|
"command.prompts.title": "Modes",
|
|
"command.history.title": "History",
|
|
"command.marketplace.title": "Marketplace",
|
|
"command.openInEditor.title": "Open in Editor",
|
|
"command.account.title": "Account",
|
|
"command.settings.title": "Settings",
|
|
"command.documentation.title": "Documentation",
|
|
"command.openInNewTab.title": "Open In New Tab",
|
|
"command.explainCode.title": "Explain Code",
|
|
"command.fixCode.title": "Fix Code",
|
|
"command.improveCode.title": "Improve Code",
|
|
"command.addToContext.title": "Add To Context",
|
|
"command.focusInput.title": "Focus Input Field",
|
|
"command.setCustomStoragePath.title": "Set Custom Storage Path",
|
|
"command.importSettings.title": "Import Settings",
|
|
"command.terminal.addToContext.title": "Add Terminal Content to Context",
|
|
"command.terminal.fixCommand.title": "Fix This Command",
|
|
"command.terminal.explainCommand.title": "Explain This Command",
|
|
"command.acceptInput.title": "Accept Input/Suggestion",
|
|
"configuration.title": "Roo Code",
|
|
"commands.allowedCommands.description": "Commands that can be auto-executed when 'Always approve execute operations' is enabled",
|
|
"commands.deniedCommands.description": "Command prefixes that will be automatically denied without asking for approval. In case of conflicts with allowed commands, the longest prefix match takes precedence. Add * to deny all commands.",
|
|
"commands.commandExecutionTimeout.description": "Maximum time in seconds to wait for command execution to complete before timing out (0 = no timeout, 1-600s, default: 0s)",
|
|
"commands.commandTimeoutAllowlist.description": "Command prefixes that are excluded from the command execution timeout. Commands matching these prefixes will run without timeout restrictions.",
|
|
"commands.preventCompletionWithOpenTodos.description": "Prevent task completion when there are incomplete todos in the todo list",
|
|
"settings.vsCodeLmModelSelector.description": "Settings for VSCode Language Model API",
|
|
"settings.vsCodeLmModelSelector.vendor.description": "The vendor of the language model (e.g. copilot)",
|
|
"settings.vsCodeLmModelSelector.family.description": "The family of the language model (e.g. gpt-4)",
|
|
"settings.customStoragePath.description": "Custom storage path. Leave empty to use the default location. Supports absolute paths (e.g. 'D:\\RooCodeStorage')",
|
|
"settings.enableCodeActions.description": "Enable Roo Code quick fixes",
|
|
"settings.autoImportSettingsPath.description": "Path to a RooCode configuration file to automatically import on extension startup. Supports absolute paths and paths relative to the home directory (e.g. '~/Documents/roo-code-settings.json'). Leave empty to disable auto-import.",
|
|
"settings.useAgentRules.description": "Enable loading of AGENTS.md files for agent-specific rules (see https://agent-rules.org/)",
|
|
"settings.apiRequestTimeout.description": "Maximum time in seconds to wait for API responses (0 = no timeout, 1-3600s, default: 600s). Higher values are recommended for local providers like LM Studio and Ollama that may need more processing time.",
|
|
"settings.newTaskRequireTodos.description": "Require todos parameter when creating new tasks with the new_task tool"
|
|
}
|