Skip to content

fix(index): pass index_provider to build_search_code_executor#3242

Merged
bug-ops merged 1 commit intomainfrom
3241-search-code-index-provider
Apr 19, 2026
Merged

fix(index): pass index_provider to build_search_code_executor#3242
bug-ops merged 1 commit intomainfrom
3241-search-code-index-provider

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented Apr 19, 2026

Summary

  • runner.rs:1919: replace provider.clone() with index_provider.clone() in build_search_code_executor call
  • acp.rs: resolve index_provider from config.index.embed_provider (same pattern as runner.rs) and pass it to build_search_code_executor

Fixes the dimension mismatch error (expected dim: 768, got 1536) that occurred when index.embed_provider used a different model than the main chat provider.

Closes #3241

Test plan

  • cargo build --features full — clean build
  • cargo clippy --features full --workspace -- -D warnings — zero warnings
  • cargo nextest run --features full --workspace --lib --bins — 8786 passed

@bug-ops bug-ops enabled auto-merge (squash) April 19, 2026 12:56
@github-actions github-actions Bot added bug Something isn't working size/S Small PR (11-50 lines) labels Apr 19, 2026
@bug-ops bug-ops merged commit 538db62 into main Apr 19, 2026
32 checks passed
@bug-ops bug-ops deleted the 3241-search-code-index-provider branch April 19, 2026 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size/S Small PR (11-50 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(index): build_search_code_executor receives chat provider instead of index_provider

1 participant