Skip to content

fix: open the proper config file #6635

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fbricon
Copy link
Contributor

@fbricon fbricon commented Jul 15, 2025

The continue view currently doesn't open the proper config files, when clicking the edit button for a Model, Rule, MCP server, prompt or Doc that is not defined in the default config file, typically anything defined under the workspace's .continue/ directory. This PR addresses this shortcoming by:

  • adding a sourceFile property to the aforementioned objects
  • injecting the local file path as sourceFile value, during configuration unrolling
  • passing said sourceFile value when issuing a "config/openProfile" request

Ideally Prompts' promptfile and Rules' ruleFile should be aligned with the other sourceFile properties but I wanted to minimize the impact area of this PR.

open-proper-config.mp4

Summary by cubic

Fixed the edit button so it now opens the correct config file for Models, Rules, MCP servers, Prompts, and Docs, including those defined in workspace .continue/ directories.

  • Bug Fixes
    • Added a sourceFile property to config objects and passed it through the stack to ensure the right file opens when editing non-default config entries.

@fbricon fbricon requested a review from a team as a code owner July 15, 2025 14:58
@fbricon fbricon requested review from sestinj and removed request for a team July 15, 2025 14:58
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jul 15, 2025
@fbricon fbricon force-pushed the open-proper-configfile branch from a8b76cc to ff23ccc Compare July 15, 2025 17:23
@fbricon fbricon force-pushed the open-proper-configfile branch from ff23ccc to 89a7d9a Compare July 21, 2025 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

1 participant