Skip to content

feat(qoder): author non-permissions settings through the qoder override - #3538

Merged
dyoshikawa merged 3 commits into
mainfrom
resolve-issue-3421
Oct 18, 2026
Merged

dyoshikawa merged 3 commits into
mainfrom
resolve-issue-3421

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

The qoder permissions override could only author the top-level outputStyle. This lets it author the other documented .qoder/settings.json keys 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 (defaultPermissionMode values, autoMode read only from the user settings), MCP reference (project-server approval, lazy loading).

Changes

  • qoder override schema (src/types/permissions.ts): adds general.defaultPermissionMode, tools.core / tools.exclude, mcp.allowed / excluded / enableAllProjectMcpServers / enabledProjectMcpServers / lazyLoad, agents.overrides, and the top-level agentsMdExcludes and autoMode (allow / soft_deny / environment).
  • QoderPermissions (src/features/permissions/qoder-permissions.ts):
    • Each authored key is laid over the matching group in the file, so the group's other keys (tools.useRipgrep, general.vimMode, ...) are kept. A key is only written when authored, so a value set by hand survives.
    • Only those keys are written. Other keys of these groups (tools.shell.pager, general.preferredEditor, ...) are skipped with a warning, so a shared permissions file can't point Qoder at a command.
    • autoMode is written by --global generate only. Qoder ignores it in workspace files, so in project mode it is skipped with a warning.
    • Each write that lets Qoder act without asking is named in a warning: a permissive defaultPermissionMode, mcp.enableAllProjectMcpServers: true, a non-empty enabledProjectMcpServers, and a non-empty autoMode.allow.
    • Import lifts these keys back into qoder when their values have the documented shape. autoMode is lifted only from ~/.qoder/settings.json.
  • Shared-config gateway: the permissions feature now also owns these top-level keys in .qoder/settings.json.
  • Docs: the Qoder permissions note in docs/reference/file-formats.md (and the regenerated docs-content.ts).

Test plan

  • New unit tests in qoder-permissions.test.ts: merging over existing groups, keeping hand-set keys, skipping unmodeled keys, the permissive-setting warnings (and no warning for dont_ask), autoMode written in global mode only, import in both scopes.
  • pnpm cicheck. The only failure was src/utils/glob.test.ts timing 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

dyoshikawa and others added 3 commits October 18, 2026 22:38
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant