Files
cc-connect/core
CigarrrandClaude Opus 4.6 30f289aaa5 fix(core): use full accumulated text for stream preview finalization when tool messages hidden
When tool messages are hidden (quiet mode / display.tool_messages=false),
segmentStart stays 0 and the stream preview accumulates all text across
tool boundaries. However, EventResult used event.Content (last segment
only) to finalize the preview, overwriting the accumulated content.

- Prefer strings.Join(textParts, "") over event.Content when segmentStart
  is 0, ensuring the final card contains the complete response
- Insert a visual line break between text segments at tool boundaries
  when tool messages are hidden, so segments don't run together

Closes #549

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 07:41:39 +08:00
..
2026-02-28 10:38:24 +08:00