Skip to content

fix: merge user-provided disallowedTools instead of overwriting#295

Merged
benbrandt merged 2 commits intoagentclientprotocol:mainfrom
blimmer:fix/merge-disallowed-tools
Feb 7, 2026
Merged

fix: merge user-provided disallowedTools instead of overwriting#295
benbrandt merged 2 commits intoagentclientprotocol:mainfrom
blimmer:fix/merge-disallowed-tools

Conversation

@blimmer
Copy link
Copy Markdown
Contributor

@blimmer blimmer commented Feb 6, 2026

Summary

  • User-provided disallowedTools from _meta.claudeCode.options were silently overwritten by ACP's internal list
  • Now merges both lists, following the same pattern used for hooks and mcpServers
  • Updated NewSessionMeta JSDoc to document the merge behavior

Fixes #294

User-provided disallowedTools from _meta.claudeCode.options were
silently overwritten by ACP's internal list. This follows the same
merge pattern already used for hooks and mcpServers.

Fixes agentclientprotocol#294
@cla-bot
Copy link
Copy Markdown

cla-bot bot commented Feb 6, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @blimmer on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@blimmer
Copy link
Copy Markdown
Contributor Author

blimmer commented Feb 6, 2026

@cla-bot check

@cla-bot
Copy link
Copy Markdown

cla-bot bot commented Feb 6, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @blimmer on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@cla-bot
Copy link
Copy Markdown

cla-bot bot commented Feb 6, 2026

The cla-bot has been summoned, and re-checked this pull request!

@cla-bot
Copy link
Copy Markdown

cla-bot bot commented Feb 6, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @blimmer on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@blimmer
Copy link
Copy Markdown
Contributor Author

blimmer commented Feb 6, 2026

@cla-bot check

@cla-bot cla-bot bot added the cla-signed label Feb 6, 2026
@cla-bot
Copy link
Copy Markdown

cla-bot bot commented Feb 6, 2026

The cla-bot has been summoned, and re-checked this pull request!

Copy link
Copy Markdown
Member

@benbrandt benbrandt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@benbrandt benbrandt enabled auto-merge (squash) February 7, 2026 09:30
@benbrandt benbrandt merged commit 7c87fe7 into agentclientprotocol:main Feb 7, 2026
2 checks passed
@blimmer blimmer deleted the fix/merge-disallowed-tools branch February 9, 2026 14:44
blimmer added a commit to blimmer/claude-code-acp that referenced this pull request Feb 20, 2026
The disallowedTools merge fix from agentclientprotocol#295 was regressed by agentclientprotocol#316 when
the options object was restructured. Restore the merge behavior and
add regression tests for all three documented merge fields
(disallowedTools, hooks, mcpServers).

Fixes agentclientprotocol#334
blimmer added a commit to blimmer/claude-code-acp that referenced this pull request Feb 20, 2026
The disallowedTools merge fix from agentclientprotocol#295 was regressed by agentclientprotocol#316 when
the options object was restructured. Restore the merge behavior and
add regression tests for all three documented merge fields
(disallowedTools, hooks, mcpServers).

Fixes agentclientprotocol#334
blimmer added a commit to blimmer/claude-code-acp that referenced this pull request Feb 20, 2026
The disallowedTools merge fix from agentclientprotocol#295 was regressed by agentclientprotocol#316 when
the options object was restructured. Restore the merge behavior and
add regression tests for all three documented merge fields
(disallowedTools, hooks, mcpServers).

Fixes agentclientprotocol#334
blimmer added a commit to blimmer/claude-code-acp that referenced this pull request Feb 20, 2026
The disallowedTools merge fix from agentclientprotocol#295 was regressed by agentclientprotocol#316 when
the options object was restructured. Restore the merge behavior and
add regression tests for all three documented merge fields
(disallowedTools, hooks, mcpServers).

Fixes agentclientprotocol#334
benbrandt pushed a commit that referenced this pull request Feb 20, 2026
The disallowedTools merge fix from #295 was regressed by #316 when the
options object was restructured. Restore the merge behavior and add
regression tests for all three documented merge fields (disallowedTools,
hooks, mcpServers).

Fixes #334
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] User-provided disallowedTools in _meta.claudeCode.options silently overwritten

2 participants