Skip to content

fix: add per-memory ollama embed timeout - #363

Merged
o8-run-agent[bot] merged 1 commit into
mainfrom
fix/embed-timeout-362
Mar 24, 2026
Merged

o8-run-agent[bot] merged 1 commit into
mainfrom
fix/embed-timeout-362

Conversation

@hurttlocker

Copy link
Copy Markdown
Owner

Closes #362.

What changed

  • add a 10s-per-memory timeout policy for Ollama embedding requests
  • scope the request context in the embed client for Ollama batches
  • add focused timeout/unit tests for the new behavior

Why this change exists

  • the current Ollama embed path can hang indefinitely on problematic memories
  • this blocks background embedding, benchmark runs, and import-quality experiments
  • a bounded timeout unblocks the whole local eval stack

Touched surfaces

  • internal/embed/embed.go
  • internal/embed/embed_test.go

Tests run

  • go test ./internal/embed -run 'Ollama|Timeout|Embed_Ollama'

Risk

  • changes Ollama timeout behavior only
  • could surface more timeout errors on very slow local hosts, but that is preferable to indefinite hangs

@o8-run-agent
o8-run-agent Bot merged commit 175b75d into main Mar 24, 2026
4 checks passed
@hurttlocker
hurttlocker deleted the fix/embed-timeout-362 branch March 25, 2026 17:59
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.

bug: embed command hangs indefinitely on certain memories — no per-memory timeout

1 participant