v3.6.0
Medium-tier audit fixes (cross-platform, correctness, stability, security).
Fixed
- OpenAI o-series (o3/o3-mini/o4-mini) now send
max_completion_tokensinstead ofmax_tokens(the o-series 400 on the latter). OLLAMA_BINwas macOS-only β resolved via$OLLAMA_BINβPATHβ app bundle, so/pull,/delete, and update checks work on Linux/Windows.multi_editfailed in Ollama text mode β JSON-stringeditsare now parsed; no longer burns an undo slot on a no-op._stop_ollamakilled all Ollama processes β now stops only the one Kodiqa started and reaps it; added anatexithandler to clean up spawned MCP/LSP/Ollama children even on crash.memory_searchcould fail under parallel dispatch β SQLite opened withcheck_same_thread=False.- Streaming connection leak β all three chat loops
resp.close()infinally.
Security
- Hook command injection β hook
{param}values areshlex.quoted before substitution. - Blocklist hardening β
run_commandnormalizes whitespace before matchingBLOCKED_COMMANDS(rm -rf /is now caught).
Tests
- Regressions for o-series body, multi_edit JSON-string, and blocklist normalization (300 total).