Repository navigation
feat(qoder): author non-permissions settings through the qoder override - #3538
Merged
Merged
Conversation
The qoder permissions override could only set the top-level outputStyle. It now also writes the documented settings that have no canonical category: general.defaultPermissionMode, tools.core / tools.exclude, mcp.allowed / excluded / enableAllProjectMcpServers / enabledProjectMcpServers / lazyLoad, agents.overrides, and the top-level agentsMdExcludes and autoMode. Authored keys are laid over the matching group so its other keys are kept; other keys of these groups (tools.shell.pager, general.preferredEditor, ...) are skipped with a warning. autoMode is written by --global generate only, since Qoder reads it from the user settings alone. Permissive modes, MCP auto-approval and autoMode.allow are announced. Import lifts the keys back when they have the documented shape. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XcU6mYjWis3a6YpqCW2xgB
An override that wrote only autoMode.environment replaced the whole block and dropped a hand-set autoMode.soft_deny. autoMode is now laid over the existing block key by key like the other groups, keys other than allow / soft_deny / environment are skipped with a warning, and import lifts only those keys. Document that removing a key from the override leaves the previously written value in the settings file. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XcU6mYjWis3a6YpqCW2xgB
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XcU6mYjWis3a6YpqCW2xgB # Conflicts: # src/generated/docs-content.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
qoderpermissions override could only author the top-leveloutputStyle. This lets it author the other documented.qoder/settings.jsonkeys that have no canonical permission category, which is the item #3421 (and its 2026-10-18 re-check) still lists as open. The approach follows the existing Qwen Code / Tabnine overrides.Sources: settings reference, permissions (
defaultPermissionModevalues,autoModeread only from the user settings), MCP reference (project-server approval, lazy loading).Changes
qoderoverride schema (src/types/permissions.ts): addsgeneral.defaultPermissionMode,tools.core/tools.exclude,mcp.allowed/excluded/enableAllProjectMcpServers/enabledProjectMcpServers/lazyLoad,agents.overrides, and the top-levelagentsMdExcludesandautoMode(allow/soft_deny/environment).QoderPermissions(src/features/permissions/qoder-permissions.ts):tools.useRipgrep,general.vimMode, ...) are kept. A key is only written when authored, so a value set by hand survives.tools.shell.pager,general.preferredEditor, ...) are skipped with a warning, so a shared permissions file can't point Qoder at a command.autoModeis written by--globalgenerate only. Qoder ignores it in workspace files, so in project mode it is skipped with a warning.defaultPermissionMode,mcp.enableAllProjectMcpServers: true, a non-emptyenabledProjectMcpServers, and a non-emptyautoMode.allow.qoderwhen their values have the documented shape.autoModeis lifted only from~/.qoder/settings.json..qoder/settings.json.docs/reference/file-formats.md(and the regenerateddocs-content.ts).Test plan
qoder-permissions.test.ts: merging over existing groups, keeping hand-set keys, skipping unmodeled keys, the permissive-setting warnings (and no warning fordont_ask),autoModewritten in global mode only, import in both scopes.pnpm cicheck. The only failure wassrc/utils/glob.test.tstiming out under a host load average of about 35; it passes on its own with a longer timeout and does not touch this code.Refs #3421
🤖 Generated with Claude Code
https://claude.ai/code/session_01XcU6mYjWis3a6YpqCW2xgB