# fix\(acp\): Preserve wake evidence across an app-owned wake · pingdotgg/t3code

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

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

Visibility: public

Requested revision: 30a36042943527d4563b982cf74c431c7df99647

Requested commit: 30a36042943527d4563b982cf74c431c7df99647

Commit: 30a36042943527d4563b982cf74c431c7df99647

Tree: 2314411578e760382cbe6f7110f6984fad44e01c

Author: Mike Olson

Committer: Julius Marminge

## Message

```
fix(acp): Preserve wake evidence across an app-owned wake

This PR introduces the only wakeBuffer clear at the ACP startTurn site, and it
also clears midTurnUnreportedCompletedTaskIds there, both on the reasoning that
a user turn owns the conversation.

An orchestrator-injected wake is not a user turn. #4499
fix/delegated-task-parent-wake dispatches app-owned delegated-child wakes as
creationSource "server", which is non-continuation, so once both land such a
wake would discard this session's pending native wake frames and its kept
mid-turn completion marks, losing agent output and a continuation offer that
nothing else can recover.

acpIsAppOwnedWakeTurn exempts orchestrator-injected wakes from both clears,
matching what ClaudeAdapterV2 already does with its own buffer. Inert without
#4499, since nothing else dispatches creationSource "server". Kept as its own
commit because the concern originates in a different PR.

```

## Parents

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

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