Commit 590e6b7
fix: fix-config now respects filesystem backend and skips Qdrant operations
CRITICAL BUG FIX: fix-config was applying Qdrant-specific configuration
(ports, container names, CoW symlinks) even when using filesystem backend.
This wasted resources and could confuse deployment scenarios like claude-server.
Root Cause Analysis:
1. Line 836: Only preserved embedding_provider, NOT vector_store config
2. Steps 4-7: Always executed Qdrant operations regardless of backend
3. Result: Unnecessary Qdrant port allocation and container name generation
Solution - Option A: Conditional Container Configuration:
1. Preserve vector_store in config_dict (line 837-840)
2. Detect filesystem backend (lines 453-456)
3. Skip Qdrant client initialization if filesystem (line 459-460)
4. Skip CoW symlink creation if filesystem (lines 474-477)
5. Skip collection checks if filesystem (lines 486-489)
6. Skip port/container regeneration if filesystem (lines 951-954)
Testing Results:
- Before: fix-config applied 8 fixes (included Qdrant port/container regeneration)
- After: fix-config applies 3 fixes (path, project name, git commit only)
- Verification: vector_store.provider preserved as "filesystem"
- Verification: project_ports/project_containers remain null (not regenerated)
- Verification: cidx start/query work correctly after fix-config
Impact:
- Fixes claude-server CoW clone issue where vector_store was lost
- Eliminates unnecessary Qdrant configuration for filesystem backend
- Reduces fix-config execution time and resource usage
- Maintains backward compatibility with Qdrant backend
Files Modified:
- src/code_indexer/services/config_fixer.py:
- Lines 831-840: Preserve vector_store in _regenerate_project_configuration
- Lines 453-489: Add conditional Qdrant operation checks in fix_configuration
- Lines 939-954: Add filesystem backend check in _fix_project_configuration
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 6761a39 commit 590e6b7
1 file changed
+35
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
454 | | - | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
455 | 461 | | |
456 | 462 | | |
457 | 463 | | |
| |||
464 | 470 | | |
465 | 471 | | |
466 | 472 | | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
471 | 478 | | |
472 | | - | |
| 479 | + | |
| 480 | + | |
473 | 481 | | |
474 | 482 | | |
475 | 483 | | |
476 | 484 | | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
481 | 490 | | |
482 | 491 | | |
483 | 492 | | |
| |||
828 | 837 | | |
829 | 838 | | |
830 | 839 | | |
831 | | - | |
| 840 | + | |
832 | 841 | | |
833 | 842 | | |
834 | 843 | | |
835 | 844 | | |
836 | | - | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
837 | 850 | | |
838 | 851 | | |
839 | 852 | | |
| |||
933 | 946 | | |
934 | 947 | | |
935 | 948 | | |
936 | | - | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
937 | 953 | | |
938 | 954 | | |
939 | 955 | | |
940 | 956 | | |
941 | 957 | | |
942 | 958 | | |
943 | 959 | | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
944 | 965 | | |
945 | 966 | | |
946 | 967 | | |
| |||
0 commit comments