Skip to content

modifyConfig in config.ts / config.js is not being executed on Windows #9617

@HansThorsager

Description

@HansThorsager

Before submitting your bug report

Relevant environment info

- OS: Windows 11 Home
- Continue version: 1.3.29
- IDE version: 1.108.1
- Model: gemini
- config:
  
name: Gemini 2.5 Pro
version: 1.0.0
schema: v1
models:
  - name: Gemini 2.5 Pro
    provider: gemini
    model: gemini-2.5-pro
    apiKey: **hidden**
    roles:
      - chat
      - edit
      - apply
    defaultCompletionOptions:
      contextLength: 1048576
      maxTokens: 65536
    capabilities:
      - tool_use
      - image_input
  

Description

The modifyConfig function, whether placed in config.ts (with a config.js bridge) or directly in config.js, is never executed. The extension seems to ignore the programmatic configuration files.

To reproduce

  1. Setup a standard configuration in ~/.continue/ on Windows.
  2. Have a working config.yaml with models defined.
  3. Create a config.ts and a config.js bridge file to modify the configuration (e.g., by changing a model's title or injecting an API key from process.env).
  4. Reload VS Code.
  5. Observe that the modifications from modifyConfig are never applied.

Expected behavior
The modifyConfig function should be executed after config.yaml is loaded, allowing for in-memory modification of the configuration.

Key Findings from Debugging:

  • The issue occurs even with a pure, dependency-free JavaScript test in config.js.
  • All config files are confirmed to be in the correct default directory (~/.continue/).
  • No custom continue.configFile path is set in VS Code settings.
  • Crucially: If config.ts is renamed or deleted, the extension automatically creates a new, empty config.ts file upon reloading VS Code. This proves the extension is aware of the file's expected presence but fails to actually execute it.

Log output

None available

Metadata

Metadata

Labels

area:configurationRelates to configuration optionside:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behavioros:windowsHappening specifically on Windows

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions