Repository navigation
Commit 1485ba9
committed
fix(server): a Claude resume rejected before the prompt keeps the native session
When Claude Code ends the query before the turn attaches (for example a
rejected --resume-session-at point), the prompt was never offered, but the
start failure was not treated as a pre-prompt refusal. The context handoff
stayed pending, so the next send skipped resume and replaced the native
session with a summary. Treat that adapter error as refused before prompt.
Fixes #34756
AI-assisted; verified with the tests and tools listed above.1 parent df7ac55 commit 1485ba9
2 files changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
247 | 250 | | |
248 | 251 | | |
249 | 252 | | |
| |||
12127 | 12130 | | |
12128 | 12131 | | |
12129 | 12132 | | |
12130 | | - | |
| 12133 | + | |
12131 | 12134 | | |
12132 | 12135 | | |
12133 | 12136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
| |||
95 | 99 | | |
96 | 100 | | |
97 | 101 | | |
| 102 | + | |
98 | 103 | | |
99 | 104 | | |
100 | 105 | | |
101 | 106 | | |
102 | 107 | | |
103 | 108 | | |
104 | 109 | | |
105 | | - | |
| 110 | + | |
| 111 | + | |
106 | 112 | | |
107 | 113 | | |
108 | 114 | | |
| |||
114 | 120 | | |
115 | 121 | | |
116 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
117 | 126 | | |
118 | 127 | | |
119 | 128 | | |
| |||
0 commit comments