Repository navigation
fix(vibe): skip approval-policy subagent names and drop keys Vibe ignores on agent profiles - #3960
Merged
Merged
Conversation
…ores on agent profiles Vibe v3.1.4 separates agents from approval policies. A file in an agents directory named ask, accept-edits, smart-approve or auto-approve is never loaded as an agent: a project copy is ignored with a config issue and a ~/.vibe/agents/ copy redefines that approval policy. Such subagents are now skipped with a warning, in both scopes, like `main`. A custom agent_type = "agent" profile can no longer decide what runs without asking, so Vibe ignores safety, bypass_tool_permissions, keys outside its agent key set, and per-tool settings other than the shell timeouts and a narrowing ask/never permission. Rulesync now drops those keys from agent profiles with a warning; subagent profiles are unchanged. Closes #3957 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
…ores
- Never import or delete .vibe/agents/{ask,accept-edits,smart-approve,auto-approve}.toml:
in ~/.vibe/agents/ they are the user's policy overrides, and deleting a narrowing
one would fall back to the broader builtin. Import skips them with a warning.
- On agent_type = "agent" profiles, drop only what Vibe's _agent_settings ignores
(VibeConfigSchema fields outside _AGENT_KEYS, safety, approval_policy) and keep
unknown keys, so a typo is still reported. Fold legacy base_disabled into
disabled_tools as migrate_agent_profile_config does.
- Reword the warning to match what Vibe reports.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
…be-approval-policy-names # 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
Follows Mistral Vibe v3.1.4, which separates agents from approval policies, for the
vibesubagent target (.vibe/agents/*.toml, both project and global scope).What changed
ask,accept-edits,smart-approveorauto-approveis now skipped with a warning, asmainalready is. In v3.1.5AgentRegistry._discovernever loads such a file as an agent. A project copy is ignored withapproval_policy.project_override_ignored, and a~/.vibe/agents/copy redefines that approval policy for every session. The stem is compared exactly, the same way Vibe compares it (agent.name in BUILTIN_APPROVAL_POLICIES), soAsk.mdis still written as an agent..vibe/agents/file with one of those four stems is not imported as a subagent; it is skipped with a warning.generate --deletedoes not delete it either (isFileOwned/isDeletable()). In~/.vibe/agents/such a file is the user's policy override, and deleting a narrowing override would fall back to the broader builtin.isFileOwnednow also receivesforDeletionandloggerfrom the processor.agent_type = "agent"profiles are dropped with a warning. This mirrors_agent_settings/session_layer_overridesin v3.1.5vibe/core/agents/models.pyandregistry.py. Dropped:safety,approval_policy, and everyVibeConfigSchemafield outside_AGENT_KEYS(e.g.bypass_tool_permissions,enabled_agents,enable_auto_approve). Per tool, anything butdefault_timeout,max_timeout_secondsand a narrowingpermissionofask/neveris dropped, sopermission = "always"and a toolallowlistgo. Unknown keys are kept, as Vibe keeps them, so a typo is still reported. A legacybase_disabledlist is folded intodisabled_tools, asmigrate_agent_profile_configdoes.agent_type = "subagent"profiles andvibe-pluginagents are unchanged.docs/reference/file-formats.md(and regeneratedsrc/generated/docs-content.ts). It now says that permissions belong todefault_approval_policyand[tools.*]inconfig.toml.Skipped
~/.vibe/agents/<policy>.tomlby hand.Closes #3957
🤖 Generated with Claude Code
https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4