Resolve issues related to configuration scope conflicts, override order, and formatting errors.
This page helps troubleshoot issues where
Configurations are merged from lowest to highest priority, with higher priorities overriding lower ones:
For security reasons, Project-Level and Local Level configurations are only applied when the current working directory is trusted. If
settings.json configurations do not take effect as expected. For details on the configuration mechanism, see Configuration Files and Application Order and Configurations, environment variables, and file paths.
Configuration Not in Effect
- Restart required: Some configuration items are marked as "restart required" and require restarting Qoder CLI to take effect after modification. Refer to Configurations, environment variables, and file paths to verify.
- Overridden by higher priority: Check if the same item is set at a higher priority level (Local Level > Project-Level > User Level), which overrides the lower priority setting.
- Command-line override: Configurations passed via
--settingstake precedence over all files and will override identically named items in the files.
Review of Precedence Order
Configurations are merged from lowest to highest priority, with higher priorities overriding lower ones:
- Built-in defaults
- User Level (
~/.qoder/settings.json) - Project-Level (
<project>/.qoder/settings.json) - Local Level (
<project>/.qoder/settings.local.json) - Command-line
--settings
Project Configuration Ignored
For security reasons, Project-Level and Local Level configurations are only applied when the current working directory is trusted. If settings.json within the project is completely ignored:
- Confirm that the current directory is trusted (
security.folderTrust.enabledis enabled by default). - When untrusted, only User Level configurations are loaded. Trust for the current working directory is determined by the trust prompt at startup (you can choose "this session only" or "remember", the latter of which is written to
settings.local.json); you can also permanently trust frequently used directories usingpermissions.trustDirectoriesin the global settings. /add-dirand--add-dironly add additional trusted directories for the current session and cannot make an untrusted project directory trusted.
Format Errors
- Configuration files are in JSON format, allowing
//and/* */comments (which are stripped before parsing). Common errors include trailing commas, mismatched quotes, and unclosed brackets. - The BOM at the beginning of the file is automatically ignored, but it is still recommended to save the file as UTF-8 without BOM.
- Use your editor and JSON Schema (
schemas/settings.schema.json) for validation and completion. - Fields must be placed under the correct group (e.g.,
ui.themeinstead of the top-leveltheme). - Use the
/settingspanel to view and modify settings to avoid manual formatting errors.
Verify Current Configuration
- Run
/settingsto view the currently applied configuration items. - Troubleshoot layer by layer: temporarily remove Local Level/Project-Level files to identify which layer introduced the issue.
Next Step
- Configuration mechanism: Configuration Files and Application Order.
- Full configuration reference: Configurations, environment variables, and file paths.
- Loading issues (Memory, Skills, and Agent not loaded): Memory, Skills, and Agent not loaded.