Skip to content

fix(tui): clear stale tool preparation state#35453

Open
kitlangton wants to merge 3 commits into
v2from
fix-stale-tools
Open

fix(tui): clear stale tool preparation state#35453
kitlangton wants to merge 3 commits into
v2from
fix-stale-tools

Conversation

@kitlangton

@kitlangton kitlangton commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Fixes #35454

Summary

  • reconcile fetched message snapshots against the highest durable event sequence applied locally
  • refresh loaded session messages after event-stream reconnects without overwriting newer in-flight state
  • make streamed part starts and tool-call transitions idempotent so replay cannot downgrade terminal tools
  • cover stale terminal messages, newer live messages, replayed events, and reconnect recovery

Testing

  • bun run test -- test/cli/tui/data.test.tsx
  • bun typecheck
  • repository pre-push typecheck (31 packages)
  • bunx prettier --check src/context/data.tsx test/cli/tui/data.test.tsx
  • file-scoped oxlint (no errors; existing warnings remain)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant