# test\(server\): keep the replayed app-server alive past the delegated-task recording · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/1afd783c5e4ee4764ccc24bbe1649d25be539cee)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 1afd783c5e4ee4764ccc24bbe1649d25be539cee

Requested commit: 1afd783c5e4ee4764ccc24bbe1649d25be539cee

Commit: 1afd783c5e4ee4764ccc24bbe1649d25be539cee

Tree: bd031c599119a920111b821caaf53b0e13456172

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
test(server): keep the replayed app-server alive past the delegated-task recording

The delegated_task_status recording ends with the recorder closing the
app-server while the parent turn is still open. The MCP integration test keeps
acting as that parent afterwards, so replaying the exit now (correctly) fails
the parent run and task_status reports parent_not_active. Drop the recorded
exit in that test's loader instead of changing what the app-server exit does.

Also assert that a dead process fails the event stream with
ProviderAdapterEventStreamError, since a clean end reads as manual_shutdown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

```

## Parents

- [aa2d9455a8679e9c74b8edef1141e84707d036ff](https://git.cafe/pingdotgg/t3code/commit/aa2d9455a8679e9c74b8edef1141e84707d036ff?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/1afd783c5e4ee4764ccc24bbe1649d25be539cee?format=markdown)
