acp_thread: Fix missing and stale agent tool output (#64708)

- Fix raw-only tool creation displaying no output and successive
raw-output updates leaving stale text visible.
- Keep structured content separate from the cached raw-output fallback,
with one `content()` accessor shared by rendering, search, visibility
checks, and Markdown export.
- Reuse the fallback's Markdown entity across raw snapshots while
preserving existing formatting, permission handling, and native replay
sequencing.

## Display rule

Nonempty structured content takes precedence. When structured content is
empty, display the latest retained raw output. Clearing structured
content restores that fallback without requiring the agent to resend its
raw output.

Release Notes:

- Fixed missing or outdated output in agent tool results.
557f85d25eBen Brandt committed on 9/24/2026, 12:44:11 PM· committed by GitHubparent99f947e
6 files changedLine totals unavailable