Skip to content

fix(compile): error handling, unlimited turns, and non-zero exit code#2

Open
someaka wants to merge 1 commit into
masterfrom
fix/compilation-error-handling-and-defaults
Open

fix(compile): error handling, unlimited turns, and non-zero exit code#2
someaka wants to merge 1 commit into
masterfrom
fix/compilation-error-handling-and-defaults

Conversation

@someaka
Copy link
Copy Markdown
Owner

@someaka someaka commented May 8, 2026

Fixes

CompilationError exception + error propagation

RuntimeError from Ollama and empty choices now raise CompilationError instead of silently returning None. main() catches it and tracks failures.

max_turns: 0 = unlimited turns

Setting compiler.max_turns: 0 in config.yaml disables the turn limit, allowing unlimited tool-calling loops for large daily logs.

Exit code 3 on failure

main() now collects all failures and exits with code 3, making notify_on_complete work correctly in Hermes cron jobs.

Model fallback default (already applied)

Both config.py copies now default to deepseek-v4-pro:cloud instead of kimi-k2.6:cloud.

Closes #1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compilation silently fails, hits turn limit, and always exits 0

2 participants