Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: prevent TTL timer from killing session when new consumer reconnects#8461

Merged
mscolnick merged 1 commit intomarimo-team:mainfrom
tigretigre:fix/ttl-close-session-handoff
Feb 26, 2026
Merged

fix: prevent TTL timer from killing session when new consumer reconnects#8461
mscolnick merged 1 commit intomarimo-team:mainfrom
tigretigre:fix/ttl-close-session-handoff

Conversation

Copy link
Contributor

tigretigre commented Feb 25, 2026

Summary

When a WebSocket consumer reconnects to an existing session, the previous consumer's TTL close timer was never cancelled and would fire later, destroying the session even though a new consumer was actively connected.

Description of Changes

Unit tests to confirm the issue.
Guard to prevent TTL from closing a session that has a new connection on it.

Checklist

  • [ x] I have read the contributor guidelines.
  • For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on Discord, or the community discussions (Please provide a link if applicable).
  • [ x] Tests have been added for the changes made.
  • Documentation has been updated where applicable, including docstrings for API changes.
  • [ x] Pull request title is a good summary of the changes - it will be used in the release notes.

When a WebSocket consumer reconnects to an existing session, the previous
consumer's TTL close timer was never cancelled and would fire later,
destroying the session even though a new consumer was actively connected.
Copy link

vercel bot commented Feb 25, 2026 *
edited
Loading

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marimo-docs Ready Preview, Comment Feb 25, 2026 3:01pm

Copy link

github-actions bot commented Feb 25, 2026 *
edited
Loading

All contributors have signed the CLA
Posted by the CLA Assistant Lite bot.

vercel bot deployed to Preview February 25, 2026 15:01 View deployment
Copy link
Contributor Author

tigretigre commented Feb 25, 2026

I have read the CLA Document and I hereby sign the CLA

Light2Dark added bug Something isn't working labels Feb 25, 2026
mscolnick approved these changes Feb 26, 2026
mscolnick merged commit 2684c38 into marimo-team:main Feb 26, 2026
52 of 80 checks passed
Copy link
Contributor

mscolnick commented Feb 26, 2026

thank you @tigretigre for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

mscolnick mscolnick approved these changes

Assignees

No one assigned

Labels

bug Something isn't working

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants