Commit c52948b
Fix: recreate sessions when resume fails with 'Session not found'
Worker sessions that were created but never received messages have no
events.jsonl, so the CLI server returns 'Session not found' on resume.
This caused multi-agent workers to silently vanish from the sidebar
after relaunch.
Now falls back to CreateSessionAsync when resume fails with 'Session
not found', preserving the session in _sessions so it remains visible
and functional.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 101e36c commit c52948b
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
209 | 227 | | |
210 | 228 | | |
211 | 229 | | |
| |||
0 commit comments