refactor: remove legacy chat path, fix corrupted conversation recovery

- Delete CodeSession::chat() — the legacy inline tool loop that
  duplicated the orchestrator's conversation + tool dispatch logic
- Delete wait_for_tool_result() — only used by the legacy path
- Make orchestrator mandatory in run_session (no more if/else fallback)
- Unify conversation creation into create_fresh_conversation()
- Add corrupted conversation recovery to create_or_append_conversation:
  detects "function calls and responses" errors from Mistral (caused by
  disconnecting mid-tool-call) and auto-creates a fresh conversation
- Add tracing-appender for optional rotating log file (SOL_LOG_FILE env)
- Add Procfile.dev for overmind process management
This commit is contained in:
2026-03-24 19:49:07 +00:00
parent d58bbfce66
commit 6a2aafdccc
5 changed files with 109 additions and 314 deletions

1
Procfile.dev Normal file
View File

@@ -0,0 +1 @@
sol: cargo run