Commit 4161c89
fix: v9.14.3 — CLI temporal anti-fallback second path
E2E variation testing revealed cli.py had a second fallback path at
the _has_temporal check (~line 5190). When no temporal collection
directory existed, the CLI printed "Falling back to space-only search"
and set time_range = None, silently executing a full regular semantic
search instead of returning nothing.
Fixed: replaced time_range = None fall-through with early return after
printing honest "Temporal index not available. No results returned."
message. Consistent with Messi Rule #2 (graceful failure over forced success).
Added test: test_cli_no_temporal_index_returns_immediately verifies
execute_temporal_query_with_fusion is never called when _has_temporal=False.
Also found (not fixed here): --chunk-type, --author, diff_type filters
are silently dropped in execute_temporal_query_with_fusion — pre-existing
gap not introduced by this work.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 559f991 commit 4161c89
File tree
4 files changed
+65
-10
lines changed- src/code_indexer
- tests/unit/cli
4 files changed
+65
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
11 | 17 | | |
12 | | - | |
| 18 | + | |
13 | 19 | | |
14 | 20 | | |
15 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5188 | 5188 | | |
5189 | 5189 | | |
5190 | 5190 | | |
5191 | | - | |
| 5191 | + | |
5192 | 5192 | | |
5193 | | - | |
5194 | 5193 | | |
5195 | | - | |
| 5194 | + | |
5196 | 5195 | | |
5197 | 5196 | | |
5198 | | - | |
5199 | | - | |
5200 | | - | |
5201 | | - | |
5202 | | - | |
| 5197 | + | |
| 5198 | + | |
| 5199 | + | |
| 5200 | + | |
| 5201 | + | |
| 5202 | + | |
5203 | 5203 | | |
5204 | 5204 | | |
5205 | 5205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
125 | 134 | | |
126 | 135 | | |
127 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
128 | 177 | | |
129 | 178 | | |
130 | 179 | | |
| |||
0 commit comments