mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-24 13:43:41 +00:00
When a project.json file_structure section is missing the gitignore key,
the extension crashes with KeyError, which can halt the agent entirely.
Fix uses .get() with sensible defaults for all file_structure accesses:
- enabled -> .get("enabled", False)
- max_depth -> .get("max_depth", 0)
- gitignore -> .get("gitignore", "")
|
||
|---|---|---|
| .. | ||
| python | ||
| webui | ||