acp_thread: Fix compaction button stuck at loading state on error (#59161)

Closes AI-393

When the user proactively cancels a turn, we mark all pending entries as
cancelled. But if something else stops/halts a turn, we weren't doing
that in the case of compaction, which means we would be stuck in a
loading state forever.

Release Notes:

- N/A _(feature hasn't been publicly released yet so no notes)_
d8eb569cc5Danilo Leal committed on 6/15/2026, 10:54:31 AM· committed by GitHubparent7726682
1 file changedLine totals unavailable