Repository navigation
Commit c5c86e1
fix(server): Claude threads revert to the message after a /compact
A Claude turn with no main-thread assistant message, such as `/compact`,
records no resume cursor. Reverting to the message after one failed with
"no SDK assistant message cursor was recorded for that turn", so idle
compaction left one message per thread that could never be reverted to.
Resume at the latest earlier turn's cursor instead. That point holds the
same conversation; only the compaction is undone.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent a773dc3 commit c5c86e1
2 files changed
Lines changed: 47 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5450 | 5450 | | |
5451 | 5451 | | |
5452 | 5452 | | |
| 5453 | + | |
| 5454 | + | |
| 5455 | + | |
| 5456 | + | |
| 5457 | + | |
| 5458 | + | |
| 5459 | + | |
| 5460 | + | |
| 5461 | + | |
| 5462 | + | |
| 5463 | + | |
| 5464 | + | |
| 5465 | + | |
| 5466 | + | |
| 5467 | + | |
| 5468 | + | |
| 5469 | + | |
| 5470 | + | |
| 5471 | + | |
| 5472 | + | |
| 5473 | + | |
| 5474 | + | |
| 5475 | + | |
5453 | 5476 | | |
5454 | 5477 | | |
5455 | 5478 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1922 | 1922 | | |
1923 | 1923 | | |
1924 | 1924 | | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
1925 | 1935 | | |
1926 | 1936 | | |
1927 | 1937 | | |
| |||
2008 | 2018 | | |
2009 | 2019 | | |
2010 | 2020 | | |
2011 | | - | |
2012 | | - | |
2013 | | - | |
2014 | | - | |
2015 | | - | |
2016 | | - | |
2017 | | - | |
2018 | | - | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
2019 | 2024 | | |
2020 | 2025 | | |
2021 | 2026 | | |
| |||
2025 | 2030 | | |
2026 | 2031 | | |
2027 | 2032 | | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
2028 | 2044 | | |
2029 | 2045 | | |
2030 | 2046 | | |
| |||
0 commit comments