claw-code/rust/crates/tools/src
YeonGyu-Kim 6ddfa78b7c feat(tools): wire config.trusted_roots into WorkerCreate tool
Previously WorkerCreate passed trusted_roots directly to spawn_worker
with no config-level default. Any batch script omitting the field
stalled all workers at TrustRequired with no recovery path.

Now run_worker_create loads RuntimeConfig from the worker CWD before
spawning and merges config.trusted_roots() with per-call overrides.
Per-call overrides still take effect; config provides the default.

Add test: worker_create_merges_config_trusted_roots_without_per_call_override
- writes .claw/settings.json with trustedRoots=[<os-temp-dir>] in a temp worktree
- calls WorkerCreate with no trusted_roots field
- asserts trust_auto_resolve=true (config roots matched the CWD)

81 tool tests passing, 0 failing.
2026-04-08 03:08:13 +09:00
..
lane_completion.rs Classify quiet agent states before they look stale 2026-04-05 18:47:23 +00:00
lib.rs feat(tools): wire config.trusted_roots into WorkerCreate tool 2026-04-08 03:08:13 +09:00
pdf_extract.rs feat: b6-http-proxy-v2 follow-up work — batch 6 2026-04-07 16:11:51 +09:00