Commit 49a68c1
Eric Wheeler
fix: add debug logging for API conversation history issues
Add detailed logging to readApiMessages function to help diagnose
"Unexpected: No existing API conversation history" errors.
The logs will show:
- When the history file exists but contains an empty array
- When the old history file exists but contains an empty array
- When neither history file is found
This will help diagnose issues like the one in #4311 where the
API conversation history file gets truncated to an empty array
during task resumption with orchestrator tasks.
Fixes: #4311
Signed-off-by: Eric Wheeler <[email protected]>1 parent 664346e commit 49a68c1
1 file changed
+20
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
25 | 32 | | |
26 | 33 | | |
27 | 34 | | |
28 | 35 | | |
29 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
30 | 43 | | |
31 | | - | |
| 44 | + | |
32 | 45 | | |
33 | 46 | | |
34 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
35 | 52 | | |
36 | 53 | | |
37 | 54 | | |
| |||
0 commit comments