Repository navigation
Commit 4d8f783
fix(server): foreground Claude forks no longer show as finished the moment they start
Claude Code opens a foreground fork's stream with a placeholder result
("Fork started — that fork is you.") for the fork's own launch call,
tagged with that call as parent_tool_use_id. The adapter read it as the
subagent's final result and settled the fork as completed while it was
still running. A subagent's stream never carries the real result of its
own launch, so skip a tool result whose id matches its message's parent.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 1abf368 commit 4d8f783
2 files changed
Lines changed: 75 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11529 | 11529 | | |
11530 | 11530 | | |
11531 | 11531 | | |
| 11532 | + | |
| 11533 | + | |
| 11534 | + | |
| 11535 | + | |
| 11536 | + | |
| 11537 | + | |
| 11538 | + | |
| 11539 | + | |
| 11540 | + | |
| 11541 | + | |
| 11542 | + | |
| 11543 | + | |
| 11544 | + | |
| 11545 | + | |
| 11546 | + | |
| 11547 | + | |
| 11548 | + | |
| 11549 | + | |
| 11550 | + | |
| 11551 | + | |
| 11552 | + | |
| 11553 | + | |
| 11554 | + | |
| 11555 | + | |
| 11556 | + | |
| 11557 | + | |
| 11558 | + | |
| 11559 | + | |
| 11560 | + | |
| 11561 | + | |
| 11562 | + | |
| 11563 | + | |
| 11564 | + | |
| 11565 | + | |
| 11566 | + | |
| 11567 | + | |
| 11568 | + | |
| 11569 | + | |
| 11570 | + | |
| 11571 | + | |
| 11572 | + | |
| 11573 | + | |
| 11574 | + | |
| 11575 | + | |
| 11576 | + | |
| 11577 | + | |
| 11578 | + | |
| 11579 | + | |
| 11580 | + | |
| 11581 | + | |
| 11582 | + | |
| 11583 | + | |
| 11584 | + | |
| 11585 | + | |
| 11586 | + | |
| 11587 | + | |
| 11588 | + | |
| 11589 | + | |
| 11590 | + | |
| 11591 | + | |
| 11592 | + | |
| 11593 | + | |
| 11594 | + | |
| 11595 | + | |
| 11596 | + | |
| 11597 | + | |
| 11598 | + | |
| 11599 | + | |
| 11600 | + | |
| 11601 | + | |
| 11602 | + | |
| 11603 | + | |
| 11604 | + | |
11532 | 11605 | | |
11533 | 11606 | | |
11534 | 11607 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8819 | 8819 | | |
8820 | 8820 | | |
8821 | 8821 | | |
| 8822 | + | |
| 8823 | + | |
8822 | 8824 | | |
8823 | 8825 | | |
8824 | 8826 | | |
| |||
0 commit comments