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

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

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

Visibility: public

Requested revision: 9f7644d47e198d56f0cc0523f456fd249516cb43

Requested commit: 9f7644d47e198d56f0cc0523f456fd249516cb43

Commit: 9f7644d47e198d56f0cc0523f456fd249516cb43

Tree: 08626e0e98f4e1dabb8f851700100b89e62b97c5

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

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

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