Skip to content

fix(ui): ignore stale sequence timeouts - #120

Open
guyua9 wants to merge 1 commit into
balajz:mainfrom
guyua9:guyua9/fix/ui-invalidate-stale-seq-timeouts
Open

fix(ui): ignore stale sequence timeouts#120
guyua9 wants to merge 1 commit into
balajz:mainfrom
guyua9:guyua9/fix/ui-invalidate-stale-seq-timeouts

Conversation

@guyua9

@guyua9 guyua9 commented Aug 28, 2026

Copy link
Copy Markdown

A delayed double-key timeout can arrive after the REPL has started executing a query. The old handler only checked the sequence number and could reset StateExecuting to StateInput, hiding the running query and changing cancellation/input behavior.

This change:

  • limits seqTimeoutMsg state transitions to pending clear/quit states;
  • invalidates pending sequence ticks on completion, abort, and interrupt paths;
  • clears the pending status message when a sequence is abandoned;
  • adds model-level regression coverage for stale timeout and status cleanup.

Validation:

  • GOPROXY=direct go test ./...
  • GOPROXY=direct go vet ./...
  • git diff --check

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