Commit 1342a1e
committed
fix: ensure checkpoints appear in chat even with invalid metadata
- Modified CheckpointSaved component to show fallback display when checkpoint metadata is missing or invalid
- Added console warnings to help debug checkpoint metadata issues
- Prevents checkpoints from being completely hidden due to schema validation failures
- Fixes issue #5899 where users reported not seeing checkpoints despite having them enabled
The component now:
- Shows a fallback checkpoint display with default metadata when validation fails
- Logs warnings to console for debugging purposes
- Displays "metadata unavailable" indicator when using fallback data
- Ensures CheckpointMenu still functions with fallback metadata1 parent a6e16e8 commit 1342a1e
File tree
1 file changed
+29
-6
lines changed- webview-ui/src/components/chat/checkpoints
1 file changed
+29
-6
lines changedLines changed: 29 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
26 | 33 | | |
27 | 34 | | |
28 | 35 | | |
29 | 36 | | |
30 | | - | |
| 37 | + | |
31 | 38 | | |
32 | | - | |
33 | | - | |
34 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
35 | 53 | | |
36 | 54 | | |
37 | 55 | | |
38 | 56 | | |
39 | 57 | | |
40 | 58 | | |
41 | | - | |
| 59 | + | |
42 | 60 | | |
43 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
44 | 67 | | |
45 | | - | |
| 68 | + | |
46 | 69 | | |
47 | 70 | | |
48 | 71 | | |
0 commit comments