Commit 01f7716
feat(web): fall back to symbolic ref when a pinned commit is gone
If the pinned commit SHA can no longer be resolved (e.g. a force-push + GC
pruned it), refetch the evidence-panel file once at the symbolic ref so the
citation still renders instead of erroring.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent f409a0d commit 01f7716
1 file changed
Lines changed: 20 additions & 6 deletions
File tree
- packages/web/src/ee/features/chat/components/chatThread
Lines changed: 20 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
52 | 66 | | |
53 | 67 | | |
54 | 68 | | |
| |||
0 commit comments