Repository navigation
Commit 989898a
committed
fix(claude): tear down a rejected resume from its own stream
handleStreamExit left cleanup to the startSession retry, which never runs
when startSession is interrupted during the resume wait: the detached stream
fiber then marked the session rejected without removing it, so hasSession
stayed true and the next turn reused the dead query.
The rejected session now closes itself, and the retry signal comes from the
attempt rather than the session map it no longer appears in.1 parent ad6d7e7 commit 989898a
2 files changed
Lines changed: 69 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4315 | 4315 | | |
4316 | 4316 | | |
4317 | 4317 | | |
| 4318 | + | |
| 4319 | + | |
| 4320 | + | |
| 4321 | + | |
| 4322 | + | |
| 4323 | + | |
| 4324 | + | |
| 4325 | + | |
| 4326 | + | |
| 4327 | + | |
| 4328 | + | |
| 4329 | + | |
| 4330 | + | |
| 4331 | + | |
| 4332 | + | |
| 4333 | + | |
| 4334 | + | |
| 4335 | + | |
| 4336 | + | |
| 4337 | + | |
| 4338 | + | |
| 4339 | + | |
| 4340 | + | |
| 4341 | + | |
| 4342 | + | |
| 4343 | + | |
| 4344 | + | |
| 4345 | + | |
| 4346 | + | |
| 4347 | + | |
| 4348 | + | |
| 4349 | + | |
| 4350 | + | |
| 4351 | + | |
| 4352 | + | |
| 4353 | + | |
| 4354 | + | |
| 4355 | + | |
| 4356 | + | |
| 4357 | + | |
| 4358 | + | |
| 4359 | + | |
| 4360 | + | |
| 4361 | + | |
| 4362 | + | |
| 4363 | + | |
| 4364 | + | |
| 4365 | + | |
| 4366 | + | |
4318 | 4367 | | |
4319 | 4368 | | |
4320 | 4369 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3732 | 3732 | | |
3733 | 3733 | | |
3734 | 3734 | | |
3735 | | - | |
| 3735 | + | |
| 3736 | + | |
| 3737 | + | |
| 3738 | + | |
| 3739 | + | |
| 3740 | + | |
| 3741 | + | |
| 3742 | + | |
| 3743 | + | |
3736 | 3744 | | |
3737 | 3745 | | |
3738 | 3746 | | |
| |||
3901 | 3909 | | |
3902 | 3910 | | |
3903 | 3911 | | |
3904 | | - | |
3905 | | - | |
| 3912 | + | |
| 3913 | + | |
| 3914 | + | |
3906 | 3915 | | |
3907 | 3916 | | |
3908 | 3917 | | |
| |||
4618 | 4627 | | |
4619 | 4628 | | |
4620 | 4629 | | |
4621 | | - | |
| 4630 | + | |
| 4631 | + | |
| 4632 | + | |
| 4633 | + | |
4622 | 4634 | | |
4623 | | - | |
4624 | | - | |
| 4635 | + | |
4625 | 4636 | | |
4626 | 4637 | | |
4627 | 4638 | | |
4628 | 4639 | | |
4629 | 4640 | | |
4630 | 4641 | | |
4631 | 4642 | | |
4632 | | - | |
4633 | | - | |
| 4643 | + | |
| 4644 | + | |
4634 | 4645 | | |
4635 | 4646 | | |
4636 | 4647 | | |
4637 | 4648 | | |
4638 | 4649 | | |
4639 | 4650 | | |
4640 | 4651 | | |
4641 | | - | |
| 4652 | + | |
4642 | 4653 | | |
4643 | 4654 | | |
4644 | 4655 | | |
| |||
0 commit comments