Skip to content

Run card tests unmount what they draw - #48

Merged
fxck merged 1 commit into
mainfrom
fix/runchat-teardown
Oct 1, 2026
Merged

fxck merged 1 commit into
mainfrom
fix/runchat-teardown

Conversation

@fxck

@fxck fxck commented Oct 1, 2026

Copy link
Copy Markdown
Member

Main's CI Test job failed after pass 26 merged: every test passed, but Vitest caught an unhandled error, "Closing rpc while 'onUserConsoleLog' was pending", traced to RunChat.test.tsx.

That test file and ConversationWorking.test.tsx never unmounted the cards they drew. The run card's new timers (the now line's 1 s dwell, the words' fade, the clock) kept running after the files ended, and a late render logged while the worker was closing.

Each card a test draws is now unmounted after the test, which clears its timers. The console is not silenced. 25 repeated runs of the affected files and the whole src/components/chat folder show no unhandled errors.

🤖 Generated with Claude Code

RunChat's and ConversationWorking's tests left their drawn cards mounted, so
the now line's dwell, its words' fade and the bars' clocks kept firing after
the file ended: five timers left in RunChat's, two in ConversationWorking's.
A late render logged while the worker closed and failed main's Test job
(EnvironmentTeardownError on onUserConsoleLog). Each test's cards are now
unmounted after it, and no timer of theirs outlives the file.
@fxck
fxck merged commit 2326008 into main Oct 1, 2026
11 checks passed
fxck added a commit that referenced this pull request Oct 1, 2026
- #48 Run card tests unmount what they draw
- #49 A queued message whose send failed says why, and one cut off goes again
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