Commit 3aa79cc
authored
Fix Claude SDK spawn errors and handle expired sessions (#70)
Two issues fixed:
1. MCP Warmup "spawn node ENOENT" error
- warmupMcpCache() was missing pathToClaudeCodeExecutable option
- SDK fell back to spawning via 'node' which isn't in PATH when
launched from GUI
- Now uses getBundledClaudeBinaryPath() like the chat function
2. Session expired crash handling
- When resuming a session that no longer exists in Claude CLI storage,
the process would crash with "No conversation found with session ID"
- Now detects this error, clears the invalid sessionId from database,
and shows user-friendly "Session expired" message
- User can simply send their message again to start fresh1 parent 8aa6e20 commit 3aa79cc
2 files changed
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| 303 | + | |
| 304 | + | |
303 | 305 | | |
304 | 306 | | |
305 | 307 | | |
| |||
1465 | 1467 | | |
1466 | 1468 | | |
1467 | 1469 | | |
1468 | | - | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
1469 | 1484 | | |
1470 | 1485 | | |
1471 | 1486 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
85 | 90 | | |
86 | 91 | | |
87 | 92 | | |
| |||
0 commit comments