[loop-cycle-6] fix: Ollama disconnect logging and error handling (#92) #96
Reference in New Issue
Block a user
Delete Branch "fix/ollama-disconnect-logging"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Add specific error handling for Ollama disconnections across the codebase.
Changes
BaseAgent.run()now catcheshttpx.ConnectError,httpx.ReadError,ConnectionError— logs "Ollama disconnected" at ERROR level and re-raises (no silent swallowing)chat(),chat_with_tools(),continue_chat()distinguish Ollama connection errors from general failures — return specific "Ollama appears to be disconnected" messageAcceptance Criteria
Stats
Closes #92