Skip to content

Conversation

@mrubens
Copy link
Collaborator

@mrubens mrubens commented Aug 7, 2025

No description provided.

Copy link
Contributor

@roomote roomote bot left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution! I've reviewed the changes and found critical issues that need attention before this can be merged.

description: "Set up rules for a project"
---

TBD
Copy link
Contributor

Choose a reason for hiding this comment

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

This file only contains 'TBD' but the tests expect actual content. The tests are checking for strings like 'Initialize Roo Project', '.roo/rules/', 'What this command does:', 'Recommended starter rules:', etc. Could you please implement the actual content for this command?

The test expects sections like:

  • Initialize Roo Project
  • What this command does
  • Recommended starter rules
  • Getting Started
  • Example rule file structure

Without this content, all the tests will fail.

description: "Create a custom mode"
---

TBD
Copy link
Contributor

Choose a reason for hiding this comment

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

This file only contains 'TBD' but the tests expect comprehensive content. The tests are checking for 'Create a Custom Mode', 'What are Modes?', 'Mode Configuration', 'YAML', 'instructions', 'file_restrictions', 'tools', etc.

The test expects sections like:

  • Create a Custom Mode
  • What are Modes?
  • Mode Configuration
  • Mode Properties
  • Creating Your Mode
  • Mode Examples
  • Best Practices

Could you implement the actual content to match what the tests expect?

const commands = await getBuiltInCommands()

const initCommand = commands.find((cmd) => cmd.name === "init")
expect(initCommand).toBeDefined()
Copy link
Contributor

Choose a reason for hiding this comment

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

These tests will fail because they expect content that doesn't exist in the actual command files. The test expectations don't match the current 'TBD' placeholders. Should these tests be marked as pending/skipped until the actual content is implemented?

// In development: __dirname = /path/to/src/services/command
// In compiled: __dirname = /path/to/src/dist/services/command

if (__dirname.includes("/dist/")) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is using __dirname.includes("/dist/") the most reliable way to determine the environment? This could be fragile if the build structure changes. Consider using a more robust approach like checking for a specific marker file or using an environment variable.

}
} catch (error) {
// Directory doesn't exist or can't be read - this is fine, just return empty array
console.warn("Built-in commands directory not found or not readable:", error)
Copy link
Contributor

Choose a reason for hiding this comment

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

There's an inconsistency in error handling - here you use console.warn but similar errors in commands.ts are silently ignored. Should we have a consistent error handling strategy across both files?

results.push({
type: ContextMenuOptionType.SectionHeader,
label: "Custom Commands",
label: "Commands",
Copy link
Contributor

Choose a reason for hiding this comment

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

The label change from 'Custom Commands' to 'Commands' might be confusing for users who have existing custom commands. Would 'Commands (Built-in & Custom)' be clearer to indicate both types are shown?

@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Aug 7, 2025
@daniel-lxs daniel-lxs moved this from Triage to PR [Draft / In Progress] in Roo Code Roadmap Aug 9, 2025
@hannesrudolph hannesrudolph added PR - Draft / In Progress and removed Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. labels Aug 9, 2025
@mrubens mrubens force-pushed the built_in_commands branch from 8abe61a to c97e3dd Compare August 25, 2025 04:48
@mrubens mrubens closed this Aug 25, 2025
@github-project-automation github-project-automation bot moved this from PR [Draft / In Progress] to Done in Roo Code Roadmap Aug 25, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants