Skip to content

Conversation

@richardwhiteii
Copy link

@richardwhiteii richardwhiteii commented Feb 17, 2025

Description

Added new issue type for working within a fork & fixed the bug with local .roomodes not overriding global configs
The roomodes bug prevented the project specific configuration from being ready and was always overwritten by global.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

I installed the update and was able to get the system prompt to change.
For the issue I created a new issue. The new issue type reduces the overhead associated with creating issues within a local branch.

Checklist:

  • [x ] My code follows the patterns of this project
  • [ x] I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation

Additional context

There were no document changes.

Related Issues

Reviewers


Important

Add new issue template for forks and fix role definition override bug in generatePrompt() in system.ts.

  • New Feature:
    • Added simpleissue.yaml for creating issues within a fork.
  • Bug Fix:
    • In system.ts, changed role definition assignment in generatePrompt() to prioritize modeConfig.roleDefinition over promptComponent.roleDefinition.

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

richardwhiteii and others added 16 commits February 10, 2025 23:51
Related to #12

Add error handling for invalid `.roomodes` JSON syntax and display error message in RED on the "Prompts" page.

* **CustomModesManager.ts**
  - Add `errorState` property to store error messages.
  - Update `loadModesFromFile` method to catch JSON syntax errors and set the error state.
  - Add `getErrorState`, `setErrorState`, and `clearErrorState` methods to manage the error state.

* **CustomModesManager.test.ts**
  - Add tests to verify that an error message is displayed when there is an error in the `.roomodes` JSON syntax.
  - Update existing tests to handle the new error state logic.

* **PromptsView.tsx**
  - Add `errorState` to component state.
  - Add logic to fetch the error state from `CustomModesManager` and update the component state.
  - Display the error message in RED beside the word "Modes" when there is an error in the `.roomodes` JSON syntax.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/richardwhiteii/Roo-Code/issues/12?shareId=XXXX-XXXX-XXXX-XXXX).
Just adding more detail to this issues type.
Based on the current ISSUE_TEMPLATE structure, it is difficult to just create an issue within a fork.
This issue type allows for quickly capture an idea as an issue, without the overhead that is beneficial when contributing to the larger repo.
… PromptsView to eliminate unused error state
@changeset-bot
Copy link

changeset-bot bot commented Feb 17, 2025

⚠️ No Changeset found

Latest commit: edbb093

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

.gitignore Outdated
Comment on lines 32 to 33
.roomodes
.gitignore
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think we want to ignore these two

Copy link
Author

Choose a reason for hiding this comment

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

I updated my branch and removed that update.

@@ -0,0 +1,14 @@
name: Fork Issue
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you help me understand this one? Does the existing issue type not work within the forks?

Copy link
Author

Choose a reason for hiding this comment

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

Yes the existing issues work inside the fork. For me, when I create an issue inside my fork, at that point I'm really having a conversation with myself. The current options don't let me just create a ticket that says review the documentation and create documentation about [insert feature]. The other templates are absolutely valid at the repository level because you need to collect information to make decisions. I imagine you are able to discern someone's seriousness in the detail they provide in that format. At the fork level, I might be creating a range of issues, that could turn into prompts to address the finding. That is challenging with the other formats.

image

@richardwhiteii
Copy link
Author

I'm withdrawing this pr, and am replacing it with a focused change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants