Skip to content

fix(memory): apply the turn's route and model overrides when prewarming the memory block - #712

Merged
senamakel merged 1 commit into
epic/712-tool-tokensfrom
epic-712-oh709-prewarm-overrides
Nov 7, 2026
Merged

senamakel merged 1 commit into
epic/712-tool-tokensfrom
epic-712-oh709-prewarm-overrides

Conversation

@senamakel

Copy link
Copy Markdown
Owner

Closes #709

Part of tinyhumansai/chottu-core#712

What changed

  • prewarm_memory_block_for now takes model_override, temperature and route and applies them with apply_turn_overrides before building its session, as compact_thread_for does.
  • Agent::prewarm_memory_block (embed) passes the agent's turn route/model, as compact_thread does.
  • Tests (agent_runs/agent_chat/compact_tests.rs): prewarm_memory_block_uses_turn_overrides (hosted route only -> Ready; failed before the fix with BACKEND_UNAVAILABLE: managed inference needs a hosted provider) and prewarm_memory_block_without_overrides_has_no_hosted_provider.

Gates (vendor/openhuman)

  • cargo fmt --all -- --check: pass
  • cargo check -p openhuman-embed: pass
  • cargo test -p openhuman --lib prewarm_memory_block: 2/2 pass
  • cargo test -p openhuman --lib memory_block: 39/39 pass
  • cargo clippy -p openhuman --all-targets -- -D warnings: 23 errors, same count as pre-existing, none in the touched files
  • embed integration tests not built locally (pre-existing)

No gitlink bump: pure openhuman leaf.

…ng the memory block

prewarm_memory_block built its session without the embedder's route and
model, so a hosted-route-only embedder answered BACKEND_UNAVAILABLE. It now
applies them through apply_turn_overrides, as compact_thread does.

Co-authored-by: Medulla <medulla@tinyhumans.ai>
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.

1 participant