Skip to content

fix: ignore stale Esc retractions safely - #19

Merged
asfires merged 2 commits into
mainfrom
t3code/ignore-stale-esc-retraction
Aug 12, 2026
Merged

asfires merged 2 commits into
mainfrom
t3code/ignore-stale-esc-retraction

Conversation

@asfires

@asfires asfires commented Aug 12, 2026

Copy link
Copy Markdown
Owner

What Changed

Added provider-side validation for rollback boundaries before interrupting a live turn. Unavailable retained boundaries now produce silent failures, restore the optimistic composer state, and avoid surfacing stale Esc retraction errors in the thread feed and work log. Added focused server, provider, web recovery, and session-logic tests.

Why

An Esc retraction could target provider history that was no longer available, leaving the turn marked failed and exposing an error even though the retraction was stale and should be ignored. Validating the boundary first prevents unnecessary interruption, while restoring the pre-Esc composer state keeps the user’s draft intact.

UI Changes

No visible UI changes. Silent stale-retraction failures are intentionally omitted from error surfaces and restore the composer state.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

- Validate rollback boundaries before interrupting provider turns
- Silently restore optimistic composer state when boundaries are unavailable
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:L labels Aug 12, 2026
@asfires
asfires merged commit 9a5a2ff into main Aug 12, 2026
6 of 10 checks passed
@asfires
asfires deleted the t3code/ignore-stale-esc-retraction branch August 12, 2026 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant