## Summary `providers::ollama::tests::test_stream_ollama_timeout_on_stall` panics due to `unwrap()` when request log file path does not exist. ## Environment - Repo: `aaif-goose/goose` - Commit tested: `3f5277538d5f6df1a88faca5e77cecc0ee208ae1` (`origin/main`) - Host: macOS 26.4.1 (arm64) - Date tested: 2026-04-11 ## Reproduction ```bash source bin/activate-hermit cargo test -p goose --lib providers::ollama::tests::test_stream_ollama_timeout_on_stall -- --exact ``` ## Expected Timeout handling should return a recoverable error path (or structured failure) without panicking. ## Actual Panic at `crates/goose/src/providers/ollama.rs:523:10`: ```text called `Result::unwrap()` on an `Err` value: failed to open file .../state/logs/llm_request.<uuid>.jsonl: No such file or directory (os error 2) ``` ## Impact - Hard panic in stall-timeout path - Test instability and potential runtime crash when log directory/file is absent ## Evidence - Log excerpt: https://github.com/sunilkumarvalmiki/goose/blob/bughunt/evidence-20260411/.artifacts/bug-hunt-20260411_233319/issues/bug2_ollama_timeout_panic_excerpt.txt - Screenshot:  - Evidence video (all bugs): https://github.com/raw/sunilkumarvalmiki/goose/bughunt/evidence-20260411/.artifacts/bug-hunt-20260411_233319/screenshots/bug-evidence-summary.mp4
Summary
providers::ollama::tests::test_stream_ollama_timeout_on_stallpanics due tounwrap()when request log file path does not exist.Environment
aaif-goose/goose3f5277538d5f6df1a88faca5e77cecc0ee208ae1(origin/main)Reproduction
Expected
Timeout handling should return a recoverable error path (or structured failure) without panicking.
Actual
Panic at
crates/goose/src/providers/ollama.rs:523:10:Impact
Evidence