Skip to content

fix(remote): retain tool outcomes when truncating event payloads - #701

Merged
huichen merged 2 commits into
mainfrom
fix/tool-event-truncation
Sep 17, 2026
Merged

huichen merged 2 commits into
mainfrom
fix/tool-event-truncation

Conversation

@huichen

@huichen huichen commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Share bounded tool-event truncation between live publishing and replay, preserving call identity, outcome metadata, error text, output exit footers, and file/command targets.
  • Fix completed tool calls remaining as running and splitting mobile activity groups after oversized test output is capped.
  • Add regression coverage for success/failure, tool_end/tool_result, UTF-8, escaped JSON, large errors/inputs, and live/replay parity. No mobile grouping changes.

Validation

  • Rust 1.97 fmt and clippy --all-targets -D warnings passed with GUI and no-default-features.
  • Complete backend suites passed serially: GUI 1281 lib + 4 other tests; no-GUI 1013 lib + 5 other tests. Two unrelated tests failed on separate initial parallel runs, passed individually, and the complete serial suites passed.
  • Replayed the original recorded session through the actual fixed Rust wire caps into the unchanged TypeScript projector: 16 tool rows + 3 reasoning segments, no stale running row, actual failed result retained. No private session data is included in the PR.

@huichen
huichen enabled auto-merge (squash) September 17, 2026 07:09
@huichen
huichen merged commit 7a25e75 into main Sep 17, 2026
12 checks passed
@huichen
huichen deleted the fix/tool-event-truncation branch September 17, 2026 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant