Commit 73096b1
committed
fix: honor --discovery flag without --index
Add new branch to handle --discovery flag when --index is not provided.
Previously, the condition checked for both discoveryFlag AND indexSpecs,
causing the flag to be ignored when used alone. Now:
- discoveryFlag + indexSpecs: Discovery mode with remote + local indexes
- discoveryFlag alone: Discovery mode with local indexes only
- indexSpecs alone: Fixed mode with specified indexes
- No flags: Original behavior (fail fast if no indexes)
Applied fix to both stdioCommand and httpCommand handlers.
Agent-Id: agent-3635d277-f9a4-486b-81e0-cabd00c2a4b21 parent 9c79c29 commit 73096b1
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
| |||
103 | 108 | | |
104 | 109 | | |
105 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
106 | 116 | | |
107 | 117 | | |
108 | 118 | | |
| |||
0 commit comments