continue-custom/core/config/profile
MumuTW bcd514aa55
fix: use config.yaml name for default Local Config profile (#11110)
* fix(core): pass config name through ConfigResult instead of re-reading file

Rework per reviewer feedback: instead of reading config.yaml separately
in LocalProfileLoader's constructor, propagate the name field through
ConfigResult from the existing config loading pipeline.

Changes:
- Add optional configName to ConfigResult interface
- Populate configName in unroll.ts where AssistantUnrolled is built
- Propagate through loadContinueConfigFromYaml → doLoadConfig
- LocalProfileLoader now reads configName from doLoadConfig result
- Remove duplicate fs.readFileSync + parseConfigYaml from constructor
- Works in WSL and other environments where file paths may differ

Addresses: https://github.com/continuedev/continue/issues/11061

* style: fix prettier formatting in doLoadConfig.ts

---------

Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2026-03-24 13:37:52 -07:00
..
doLoadConfig.ts fix: use config.yaml name for default Local Config profile (#11110) 2026-03-24 13:37:52 -07:00
doLoadConfig.vitest.ts fix: pass pre-read content to bypass fs.existsSync for WSL agent configs (#10451) 2026-03-10 00:21:47 -07:00
IProfileLoader.ts better platform profile loading 2025-01-14 00:11:22 -08:00
LocalProfileLoader.ts fix: use config.yaml name for default Local Config profile (#11110) 2026-03-24 13:37:52 -07:00
LocalProfileLoader.vitest.ts fix: use config.yaml name for default Local Config profile (#11110) 2026-03-24 13:37:52 -07:00
PlatformProfileLoader.ts Fix: Refactor dependency injection for settings and clients 2025-09-03 09:15:47 -04:00