Skip to content

Tests: start with hidden window, stable cancellation test - #27

Merged
9clg6 merged 2 commits into
mainfrom
oats-loose-ends
Nov 23, 2026
Merged

9clg6 merged 2 commits into
mainfrom
oats-loose-ends

Conversation

@9clg6

@9clg6 9clg6 commented Nov 23, 2026

Copy link
Copy Markdown
Owner

What

  • Pins that a note starts with the main window hidden (panel start, accepted suggestion, calendar auto-start): no frame is needed.
  • The provider cancellation test waited a fixed 50 ms before cancelling; under load the request was never sent and the test timed out. It now waits for the first chunk, and a new case pins that cancelling before sending leaves no request open.

Tests only, no production change.

Checked

  • The two files pass; the cancellation file ran 45 times (15 under load) without failure.

Clement Guyon added 2 commits November 23, 2026 05:27
The cancellation spec slept 50 ms then cancelled. When Dio had not yet
reached the transport (cold first case, Anthropic, machine under load),
the cancel stopped the request before it was sent, the fake adapter never
saw it, and 'aborted' timed out after 2 s. Cancelling with no delay
reproduces it in all four providers. Now the spec cancels once the first
chunk has arrived; a second spec pins that a cancel before sending leaves
no request open.
Proof: 30 runs idle and 15 under a parallel test load, 0 failures (0/45
before too: the flake did not show in loops; mechanism shown by the
zero-delay variant, 4/4 timeouts).
The panel's main use is starting a note while another app is in front.
Pin that panel start, accepting a suggestion (note linked to the event)
and the calendar auto-start each begin recording with the lifecycle set to
hidden (framesEnabled false) and no frame ever pumped; the shell only
records ShellView.live for when the window shows again.
Proof: 3/3 green on current main.
@9clg6
9clg6 merged commit 4db638a into main Nov 23, 2026
2 checks passed
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