Commit a7bd5ee
fix(search): never fail a knowledge query over a citation decision
Whether to ask for a citation is answered by a billing-backed availability
lookup, and it sat in the same `Promise.all` as the search itself — so a
rejection there discarded a search that had already succeeded and returned
"Failed to query knowledge base". A presentation choice could take out the
query it decorates.
Settle it to "do not cite" instead — the same answer the feature being off
gives — and log why, so the lookup failing is visible without being fatal.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014JmUGTitFeoQXVf9T3skEa1 parent 991feb9 commit a7bd5ee
2 files changed
Lines changed: 26 additions & 1 deletion
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
440 | 452 | | |
441 | 453 | | |
442 | 454 | | |
| |||
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
454 | | - | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
455 | 468 | | |
456 | 469 | | |
457 | 470 | | |
| |||
0 commit comments