You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[P1][bug] resultStore.ts:163 swallows successful results when the cancel generation mismatches #287
resultStore uses a generation counter to ignore late execute_query responses for cancelled queries.
Problem
If the user clicks Cancel, then issues a new query before the old one's response arrives, the new query's response can be discarded if the race is unfortunate — set checks generation and drops the result. The result is gone from both stores; user sees an empty grid.
The first response can arrive after the second and clobber or be dropped; second query's result is lost.
Expected
Generation cancellation only ignores the cancelled query's response, not subsequent queries.
Proposed fix
Scope S. Track per-query generation; cancel only discards the specific query_id's response. Or: a "latest" flag that only discards if the new query has not yet started.
Acceptance
Cancel + immediate re-query never drops the new query's result.
Activity
fix(editor): cancel from the keyboard, and stop a failed cancel clobb…