server: decide what claude-cli does with output that arrives after a stall or hard-timeout watchdog ended the turn
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 22/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- javascript
- Domain
- backend
Research direction
Start in packages/server/src/cli-session.js, where the stream-stall watchdog and the hard turn timeout end a turn with an interrupted result while the child keeps running. Read how #9267's Stop safety timer retires a child, and trace where late output from a kept child is accepted as a new message. Done means a deliberate decision for each watchdog, with a test per watchdog that pins what happens to output arriving after it fired. The decision itself needs maintainer input first.
Written by the indexing model from the issue text.
Description
Follow-up from #9267.
Context
#9267 makes claude-cli's 5 s Stop safety timer retire an unresponsive child, so a reply it produces after the turn ended is dropped and the next message starts a fresh child.
Remaining gap
The stream-stall watchdog and the hard turn timeout (packages/server/src/cli-session.js) also end a turn with an interrupted result while the child keeps running. They deliberately keep the child, and their error text tells the user to retry on it. A late reply from that child can therefore still arrive after the turn was reported as failed, and it is accepted into the session as a new message and result.
Wanted
Decide, for each watchdog, whether a late reply after it fired belongs to the conversation (keep the child, and attribute or label the late reply) or should be dropped (retire the child as #9267 does). Make the behaviour explicit and tested.
Acceptance
- For each watchdog, a test pins what happens to output that arrives after it fired.
Related: #9267, #9241.
- Dominant language
- JavaScript
- Stars
- 7
- Forks
- 1
- Avg merge
- 2h 3m
- Merged PRs (30d)
- 333
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from blamechris/chroxy
-
from-review tech-debt testing
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
blamechris/chroxy#9520 ·
Maintainers usually reply within 1 day
-
priority: low server
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
blamechris/chroxy#9340 ·
Maintainers usually reply within 1 day
-
documentation from-review
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
blamechris/chroxy#9237 ·
Maintainers usually reply within 1 day
-
agent-control client: notify() docstring should say the outbound gate applies only in principal modeOpenenhancement from-review
Difficulty 1/5 Under an hour Newbie friendliness 80/100
blamechris/chroxy#9227 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
blamechris/chroxy#9108 ·
Maintainers usually reply within 1 day
All issues in blamechris/chroxy
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Use one constant for the 10,000-character input limitPossibly taken @NginxL claimed this today. Opengood first issue refactor
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
aniru-dh21/snap-validate#51 ·
Maintainers usually reply within 1 day
-
Documentation pleaseOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
area/host bug P2
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Fei2411/DeepSeek-Bot#3190 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
freelawproject/litigant-portal#1307 ·
Maintainers usually reply within 2 days