Skip to content

Extension: config write-back should respect existing config file location #57

@digitarald

Description

@digitarald

The strategy write-back in vscode-extension/src/commands/instructions.ts always targets <repo>/agentrc.config.json, but loadAgentrcConfig() also supports .github/agentrc.config.json. If a repo uses the .github/ location, this silently creates a second config file, and future reads may not pick up the intended one.

Proposed: Check loadAgentrcConfig() resolution path to determine which candidate file exists, and update that one. Only create a new file at the root when neither exists.

Ref: PR #55 review comment instructions.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions