deerflow2/backend/src/config
DanielWalnut 9d18c9f0c5 feat(subagents): make subagent timeout configurable via config.yaml (#897)
* feat(subagents): make subagent timeout configurable via config.yaml

- Add SubagentsAppConfig supporting global and per-agent timeout_seconds
- Load subagents config section in AppConfig.from_file()
- Registry now applies config.yaml overrides without mutating builtin defaults
- Polling safety-net in task_tool is now dynamic (execution timeout + 60s buffer)
- Document subagents section in config.example.yaml
- Add make test command and enforce TDD policy in CLAUDE.md
- Add 38 unit tests covering config validation, timeout resolution, registry
  override behavior, and polling timeout formula

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* feat(subagents): add logging for subagent timeout config and execution

- Log loaded timeout config (global default + per-agent overrides) on startup
- Log debug message in registry when config.yaml overrides a builtin timeout
- Include timeout in executor's async execution start log
- Log effective timeout and polling limit when a task is dispatched
- Fix UnboundLocalError: move max_poll_count assignment before logger.info

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* ci(backend): add lint step and run all unit tests via Makefile

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix lint

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-25 08:39:29 +08:00
..
__init__.py feat: add LangSmith tracing integration (#878) 2026-02-21 16:41:34 +08:00
app_config.py feat(subagents): make subagent timeout configurable via config.yaml (#897) 2026-02-25 08:39:29 +08:00
extensions_config.py feat: support sub agent mechanism 2026-02-05 19:59:25 +08:00
memory_config.py feat: add global memory mechanism for personalized conversations 2026-02-03 13:31:05 +08:00
model_config.py feat: add view_image tool and optimize web fetch tools 2026-01-29 13:44:39 +08:00
sandbox_config.py fix: fix aio sandbox shutdown bug 2026-01-30 22:02:07 +08:00
skills_config.py feat: add skills system for specialized agent workflows (#6) 2026-01-16 14:44:51 +08:00
subagents_config.py feat(subagents): make subagent timeout configurable via config.yaml (#897) 2026-02-25 08:39:29 +08:00
summarization_config.py feat: implement summarization (#14) 2026-01-19 16:17:31 +08:00
title_config.py feat: add AIO sandbox provider and auto title generation (#1) 2026-01-14 23:29:18 +08:00
tool_config.py feat: add config modules 2026-01-14 07:15:58 +08:00
tracing_config.py feat(subagents): make subagent timeout configurable via config.yaml (#897) 2026-02-25 08:39:29 +08:00