Repository navigation
Commit b46ff07
fix(server): threads stay working while Claude starts a wake turn
When background work finished while the root was idle, the Claude adapter
started the wake run only at the wake turn's first output. Claude thinks for
3 to 49 s before that, so the thread showed as done, left the Working shelf,
then came back. Claude opens every turn with a root `init` frame about
20-110 ms after the notification. The adapter now starts the wake run on
that frame, and the drain keeps the run open for the output that follows.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>1 parent d1034d6 commit b46ff07
2 files changed
Lines changed: 88 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2004 | 2004 | | |
2005 | 2005 | | |
2006 | 2006 | | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
| 2013 | + | |
2007 | 2014 | | |
2008 | 2015 | | |
2009 | 2016 | | |
| |||
4641 | 4648 | | |
4642 | 4649 | | |
4643 | 4650 | | |
| 4651 | + | |
| 4652 | + | |
| 4653 | + | |
| 4654 | + | |
| 4655 | + | |
| 4656 | + | |
| 4657 | + | |
| 4658 | + | |
| 4659 | + | |
| 4660 | + | |
| 4661 | + | |
| 4662 | + | |
| 4663 | + | |
| 4664 | + | |
| 4665 | + | |
| 4666 | + | |
| 4667 | + | |
| 4668 | + | |
| 4669 | + | |
| 4670 | + | |
| 4671 | + | |
| 4672 | + | |
| 4673 | + | |
| 4674 | + | |
| 4675 | + | |
| 4676 | + | |
| 4677 | + | |
| 4678 | + | |
| 4679 | + | |
| 4680 | + | |
| 4681 | + | |
| 4682 | + | |
| 4683 | + | |
| 4684 | + | |
| 4685 | + | |
| 4686 | + | |
| 4687 | + | |
| 4688 | + | |
| 4689 | + | |
| 4690 | + | |
| 4691 | + | |
| 4692 | + | |
| 4693 | + | |
| 4694 | + | |
| 4695 | + | |
| 4696 | + | |
| 4697 | + | |
| 4698 | + | |
| 4699 | + | |
| 4700 | + | |
| 4701 | + | |
| 4702 | + | |
| 4703 | + | |
| 4704 | + | |
| 4705 | + | |
| 4706 | + | |
| 4707 | + | |
4644 | 4708 | | |
4645 | 4709 | | |
4646 | 4710 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1739 | 1739 | | |
1740 | 1740 | | |
1741 | 1741 | | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
1742 | 1749 | | |
1743 | 1750 | | |
1744 | 1751 | | |
| |||
5095 | 5102 | | |
5096 | 5103 | | |
5097 | 5104 | | |
| 5105 | + | |
5098 | 5106 | | |
5099 | 5107 | | |
5100 | 5108 | | |
5101 | 5109 | | |
5102 | 5110 | | |
5103 | 5111 | | |
| 5112 | + | |
5104 | 5113 | | |
5105 | 5114 | | |
5106 | 5115 | | |
| |||
5157 | 5166 | | |
5158 | 5167 | | |
5159 | 5168 | | |
5160 | | - | |
5161 | | - | |
5162 | | - | |
5163 | | - | |
5164 | | - | |
5165 | | - | |
| 5169 | + | |
| 5170 | + | |
| 5171 | + | |
| 5172 | + | |
| 5173 | + | |
| 5174 | + | |
| 5175 | + | |
| 5176 | + | |
5166 | 5177 | | |
5167 | 5178 | | |
5168 | 5179 | | |
| |||
5175 | 5186 | | |
5176 | 5187 | | |
5177 | 5188 | | |
| 5189 | + | |
5178 | 5190 | | |
5179 | 5191 | | |
5180 | 5192 | | |
| |||
7135 | 7147 | | |
7136 | 7148 | | |
7137 | 7149 | | |
| 7150 | + | |
| 7151 | + | |
7138 | 7152 | | |
7139 | | - | |
| 7153 | + | |
| 7154 | + | |
| 7155 | + | |
| 7156 | + | |
7140 | 7157 | | |
7141 | 7158 | | |
7142 | 7159 | | |
| |||
0 commit comments