Repository navigation
feat(qoder): follow agent-hook tools/maxTurns and security.disableYoloMode - #3916
Merged
Merged
Conversation
…oMode - Add canonical `tools` / `maxTurns` hook fields and forward them on Qoder `agent` hooks (emit and import); other hook types drop them with a warning. Per-hook passthrough fields gain an optional `hookTypes` restriction. - Let the `qoder` permissions override author `security.disableYoloMode`, merged into the existing `security` group and imported back. Refs #3421 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
…red helper Also fix the arrayPassthroughFields hookTypes JSDoc example. Refs #3421 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
…der-followup # 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.
Refs #3421
Follows up two gaps from the 2026-11-19 re-check of the Qoder upstream.
Summary
toolsandmaxTurns. The Qoder hooks reference documents both ontype: "agent"handlers (the verifier sub-agent's tool allow-list, and its turn limit, default 50). Before this change rulesync dropped them silently. They are now canonical hook fields:toolsis a string array andmaxTurnsa positive integer. Qoder agent hooks emit and import them. On any other hook type, generate and import drop them with a warning, because Qoder's prompt hooks are a single LLM call with no tools or turns.hookTypesset alongsidecommandOnly. The keyword fields already had this option. The "documented on ... hooks only" warnings now name the hook types the field is documented on.security.disableYoloMode. Theqoderoverride can now author this key from the settings reference in.qoder/settings.json/~/.qoder/settings.json. It is merged into the existingsecuritygroup, sosecurity.folderTrustand the other keys stay as they are, and it is imported back. Othersecuritykeys are skipped with a warning, the same as unmodeled keys in the other groups. The key only hardens Qoder, so it gets no permissive-setting warning.securitywas added to the shared-config ownership of.qoder/settings.json.docs/reference/file-formats.md, plus the regeneratedsrc/generated/docs-content.ts).Remaining (not in this PR)
agentsmd.subprojectPathfor Qoder. Qoder loads<subdir>/.qoder/rules/*.mdon demand (memory docs), but rulesync still writes such rules to the root.qoder/rules/. MirroringTraeRule(write and import nested.qoder/rules/) is a separate, larger change.QueryEndstays watch-only until the hooks docs list it.Tests
qoder-hooks.test.ts: agent hooks emittools/maxTurns. A prompt hook drops both with a warning. On import they are kept on agent hooks only, and a non-positivemaxTurnsis refused.qoder-permissions.test.ts:security.disableYoloModemerges over existingsecuritykeys with no warning, an unmodeledsecuritykey is skipped with a warning, and the key round-trips on import.pnpm cicheckpasses.🤖 Generated with Claude Code
https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4