every tool requires confirmation now, regardless of local project configuration
Describe the bug In my project I have a .eca/config.json file, which has a very simple "toolCall" definition on the json root level:
"toolCall": {
"approval": {
"byDefault": "ask",
"allow": {
"eca_directory_tree": {},
"eca_read_file": {},
"eca_write_file": {},
"eca_edit_file": {},
"eca_grep": {},
"eca_preview_file_change": {},
"eca_editor_diagnostics": {}
},
"ask": {},
"deny": {}
}
},
I use eca in agent mode and no other toolCall is defined for behavior -> agent.
Every tool call requires now manual confirmation regardless of allow section (I checked and eca_* tool names match), if I change byDefault to allow it works again (but that is not my intent here).
I use latest version today: ECA version: 0.73.3
To Reproduce Steps to reproduce the behavior:
- Go to project, run eca
- ask agent to list files under project dir
- observe:
Accept (C-c C-a)
Accept and remember for this session (C-c C-s)
Reject and tell ECA what to do differently (C-c C-r)
Tool: eca_directory_tree
Arguments:
path: "<my project path>"
max_depth: 2
- I would expect this call is "auto allowed" as in configuration file, which is placed in
$project_root/.eca/config.json
Additional context I found in eca git log couple changes related to tool call approval, but I didn't analyze it any further. I suspect either one of them might break this, or there's new configuration I should apply to keep previous behavior 🤔 . @ericdallo changes I mentioned:
- https://github.com/editor-code-assistant/eca/commit/d2c437a8a5d0572a23a7cb4dad63b57826a2d91b
- https://github.com/editor-code-assistant/eca/commit/e5389f3f5d4c8b1f3efd5ffa69697d6d3fb310c2
@mspik this is exactly what https://github.com/editor-code-assistant/eca/commit/d2c437a8a5d0572a23a7cb4dad63b57826a2d91b fixed, are you sure it's not working after that on 0.73.3?
I just did a test again for the fetch mcp and it didn't ask for approval with the config:
"toolCall": {
"approval": {
"allow": {"fetch": {}}
}
}
Please make sure you have latest eca server typing /doctor in chat, will close this but LMK if any issues
@ericdallo
- it was actually working for me couple days back, I was not aware there is a bug in
eca - I'm positive that I use 0.73.3 binary distributed via emacs plugin:
> ~/.emacs.d/eca/eca --version
eca 0.73.3
- I updated emacs plugin to 20251026.15
- I just tested it without any config.json files in ~/.config/.eca (so all defaults I assume), I simply go to /tmp and ask model to list files inside and I get an approval question every time:
> /config
{:defaultModel nil,
:providers
{"openai"
{:api "openai-responses",
:url "https://api.openai.com",
:key nil,
:keyEnv "OPENAI_API_KEY",
:models
{"gpt-5-codex" {},
"gpt-5" {},
"gpt-5-mini" {},
"gpt-5-nano" {},
"gpt-4.1" {},
"o4-mini" {},
"o3" {}}},
"anthropic"
{:api "anthropic",
:url "https://api.anthropic.com",
:key nil,
:keyEnv "ANTHROPIC_API_KEY",
:models
{"claude-sonnet-4-5-20250929" {},
"claude-sonnet-4-20250514" {},
"claude-opus-4-1-20250805" {},
"claude-opus-4-20250514" {},
"claude-haiku-4-5-20251001" {}}},
"github-copilot"
{:api "openai-chat",
:url "https://api.githubcopilot.com",
:key nil,
:keyEnv nil,
:models
{"gpt-5" {},
"gpt-5-mini" {},
"gpt-4.1" {},
"gemini-2.5-pro" {},
"claude-sonnet-4.5" {}}},
"google"
{:api "openai-chat",
:url "https://generativelanguage.googleapis.com/v1beta/openai",
:key nil,
:keyEnv "GOOGLE_API_KEY",
:models {"gemini-2.0-flash" {}, "gemini-2.5-pro" {}}},
"ollama" {:url "http://localhost:11434", :urlEnv "OLLAMA_API_URL"}},
:mcpTimeoutSeconds 60,
:index
{:ignoreFiles [{:type :gitignore}],
:repoMap {:maxTotalEntries 800, :maxEntriesPerDir 50}},
:hooks {},
:disabledTools [],
:welcomeMessage
"# Welcome to ECA!nnComplete / for all commandsnn- /login to authenticate with providersn- /init to create/update AGENTS.mdn- /doctor or /config to troubleshootnnAdd more contexts in @nn",
:behavior
{"agent"
{:systemPromptFile "prompts/agent_behavior.md",
:disabledTools ["eca_preview_file_change"]},
"plan"
{:systemPromptFile "prompts/plan_behavior.md",
:disabledTools ["eca_edit_file" "eca_write_file" "eca_move_file"],
:toolCall
{:approval
{:deny
{"eca_shell_command"
{:argsMatchers
{"command"
[".>."
".\|\s(tee|dd|xargs).*"
".\b(sed|awk|perl)\s+.-i.*"
".\b(rm|mv|cp|touch|mkdir)\b."
".git\s+(add|commit|push)."
".npm\s+install."
".-c\s+["'].open.["']w["']."
".bash.-c.>."]}}}}}}},
:rules [],
:commands [],
:defaultBehavior "agent",
:compactPromptFile "prompts/compact.md",
:toolCall
{:approval
{:byDefault "ask",
:allow
{"eca_compact_chat" {},
"eca_preview_file_change" {},
"eca_read_file" {},
"eca_directory_tree" {},
"eca_grep" {},
"eca_editor_diagnostics" {}},
:ask {},
:deny {}},
:readFile {:maxLines 2000},
:shellCommand {:summaryMaxLength 25}},
:lspTimeoutSeconds 30,
:mcpServers {},
:completion
{:model "openai/gpt-4.1",
:systemPromptFile "prompts/inline_completion.md"},
:chatBehavior nil}
/doctor
ECA version: 0.73.3
Server cmd: /home/user/.emacs.d/eca/eca server
Default model: github-copilot/gpt-4.1
Login providers:
anthropic: {}
azure: {}
deepseek: {}
github-copilot: {:step :login/done, :device-code "d3a*610", :access-token "ghu*G0A", :api-key "tid*d6c", :expires-at 1761570789}
google: {}
openai: {}
openrouter: {}
z-ai: {}
Relevant env vars:
DEBUGINFOD_URLS=https://debuginfod.ubuntu.com
Credential files: None found (GPG available: true)
> list all files in /tmp
Listing file tree ⏳
Accept (C-c C-a)
Accept and remember for this session (C-c C-s)
Reject and tell ECA what to do differently (C-c C-r)
Tool: eca_directory_tree
Server:
Arguments:
path: "/tmp"
max_depth: 1
---
Waiting for tool call approval.
@cursor( :) @
Same for me, this is my configuration
“toolCall”: {
“approval”: {
“allow”: {
“eca_shell_command”: {
“argsMatchers”: {
“command”: [
“.*find.*”,
“.*pwd.*”,
“.*ls.*”,
“.*cd.*”,
“.*cd.*”,
“.*gh.*”,
“.*cat.*”,
“.*grep.*”,
“.*git status.*”,
“.*git diff.*”,
“.*git log.*”,
“.*cat.*”
]
}
},
“sequential-thinking”: {},
“issue_details”: {},
“issue_comments”: {},
“find”: {},
“serena”: {},
“eca”: {},
“eca_directory_tree”: {},
“eca_read_file”: {},
“eca_grep”: {},
“eca_editor_diagnostics”: {},
“search_codebase”: {}
}
}
}
the eca version: “0.73.3”, I am also forced to confirm file read operations and other listed tools.
Ok, will try to repro your case, just a remember that ECA default approval is ask any non-read only tool, but read file and list directory should be auto approved, will try it closely
Ok I found the issue, it only happens to ECA tools, will fix it and add even more tests for that!
Should be fixed on 0.73.4!