openclaw/src/agents/tools
HCL a57766bad0 fix(agents): fall back to defaults for subagents.allowAgents
resolveAgentConfig().subagents.allowAgents reads only the per-agent
entry, never falling back to agents.defaults.subagents.allowAgents.
Other subagent defaults like runTimeoutSeconds correctly read from
cfg.agents.defaults.subagents — allowAgents was missed.

Root cause: subagent-spawn.ts:463 and agents-list-tool.ts:49 both
use resolveAgentConfig() which returns only per-agent config without
defaults merging. The same pattern is already established at
subagent-spawn.ts:403 for runTimeoutSeconds.

Fix: add cfg.agents.defaults.subagents.allowAgents as fallback when
per-agent entry doesn't specify allowAgents. Both call sites fixed.

Closes #59938

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: HCL <chenglunhu@gmail.com>
2026-04-03 19:42:24 +09:00
..
agent-step.test.ts
agent-step.ts
agents-list-tool.ts fix(agents): fall back to defaults for subagents.allowAgents 2026-04-03 19:42:24 +09:00
canvas-tool.ts
common.params.test.ts
common.test.ts
common.ts
cron-tool.flat-params.test.ts
cron-tool.schema.test.ts fix(cron-tool): add typed properties to job/patch schemas (#55043) 2026-04-01 23:41:19 +03:00
cron-tool.test.ts fix(cron-tool): add typed properties to job/patch schemas (#55043) 2026-04-01 23:41:19 +03:00
cron-tool.ts fix(cron-tool): add typed properties to job/patch schemas (#55043) 2026-04-01 23:41:19 +03:00
gateway-tool.ts
gateway.test.ts
gateway.ts
image-generate-tool.test.ts fix(image): skip inferred resolution for openai edits 2026-04-03 09:20:08 +01:00
image-generate-tool.ts fix(image): skip inferred resolution for openai edits 2026-04-03 09:20:08 +01:00
image-tool.helpers.ts
image-tool.test.ts fix(image-tool): resolve relative paths against workspaceDir (#57222) 2026-04-02 00:41:09 -04:00
image-tool.ts fix(image-tool): resolve relative paths against workspaceDir (#57222) 2026-04-02 00:41:09 -04:00
media-tool-shared.test.ts
media-tool-shared.ts
message-tool.test.ts
message-tool.ts
model-config.helpers.ts
nodes-tool-commands.ts
nodes-tool-media.ts
nodes-tool.test.ts test: reduce agent test import churn 2026-04-03 04:41:09 +01:00
nodes-tool.ts
nodes-utils.test.ts
nodes-utils.ts
pdf-native-providers.ts
pdf-tool.helpers.ts
pdf-tool.test.ts test: reduce agent test import churn 2026-04-03 04:41:09 +01:00
pdf-tool.ts
session-status-tool.ts fix(status): keep task snapshots pure 2026-04-01 16:36:57 +09:00
sessions-access.test.ts
sessions-access.ts
sessions-announce-target.ts
sessions-helpers.ts
sessions-history-tool.ts
sessions-list-tool.test.ts
sessions-list-tool.ts
sessions-resolution.test.ts
sessions-resolution.ts
sessions-send-helpers.test.ts
sessions-send-helpers.ts
sessions-send-tool.a2a.ts
sessions-send-tool.ts
sessions-spawn-tool.test.ts test: reduce agent test import churn 2026-04-03 04:41:09 +01:00
sessions-spawn-tool.ts
sessions-yield-tool.test.ts
sessions-yield-tool.ts
sessions.test.ts test: reduce agent test import churn 2026-04-03 04:41:09 +01:00
subagents-tool.ts
tool-runtime.helpers.ts
tts-tool.test.ts
tts-tool.ts
web-fetch-utils.ts
web-fetch-visibility.test.ts
web-fetch-visibility.ts
web-fetch.cf-markdown.test.ts !feat(plugins): add web fetch provider boundary (#59465) 2026-04-02 20:25:19 +09:00
web-fetch.provider-fallback.test.ts !feat(plugins): add web fetch provider boundary (#59465) 2026-04-02 20:25:19 +09:00
web-fetch.ssrf.test.ts !feat(plugins): add web fetch provider boundary (#59465) 2026-04-02 20:25:19 +09:00
web-fetch.test-harness.ts
web-fetch.test-mocks.ts
web-fetch.ts refactor(plugins): tighten web fetch provider boundary (#59646) 2026-04-02 20:53:57 +09:00
web-guarded-fetch.test.ts
web-guarded-fetch.ts
web-search-citation-redirect.ts
web-search-provider-common.test.ts
web-search-provider-common.ts
web-search-provider-config.ts
web-search-provider-credentials.ts
web-search.redirect.test.ts test: reduce agent test import churn 2026-04-03 04:41:09 +01:00
web-search.test.ts
web-search.ts
web-shared.ts
web-tools.enabled-defaults.test.ts
web-tools.fetch.test.ts !feat(plugins): add web fetch provider boundary (#59465) 2026-04-02 20:25:19 +09:00
web-tools.readability.test.ts
web-tools.ts refactor(plugins): tighten web fetch provider boundary (#59646) 2026-04-02 20:53:57 +09:00