Skip to content

RTC not working when session goes to sleep #7582

@macOneOone

Description

@macOneOone

Describe the bug

In a very specific situation, I can’t edit a cell.

This happens when I switch between windows after a period of inactivity.

Is there a way to re-enable editing without refreshing the page?

When this happens, clicking on the cell does not show the cursor, but I can still type even though the cell is not selected.

Image

Will you submit a PR?

  • Yes

Environment

Details
Replace this line with the output of marimo env. Leave the backticks in place.

Code to reproduce

{
"marimo": "0.18.4",
"editable": false,
"location": "C:/Users/johndoe/Documents/ml_research/Lib/site-packages/marimo",
"OS": "Windows",
"OS Version": "11",
"Processor": "Intel64 Family 6 Model 142 Stepping 12, GenuineIntel",
"Python Version": "3.12.6",
"Locale": "pt_PT",
"Binaries": {
"Browser": "143.0.7499.147",
"Node": "v23.6.0"
},
"Dependencies": {
"click": "8.3.1",
"docutils": "0.22.3",
"itsdangerous": "2.2.0",
"jedi": "0.19.2",
"markdown": "3.10",
"narwhals": "2.13.0",
"packaging": "25.0",
"psutil": "7.1.3",
"pygments": "2.19.2",
"pymdown-extensions": "10.18",
"pyyaml": "6.0.3",
"starlette": "0.50.0",
"tomlkit": "0.13.3",
"typing-extensions": "4.15.0",
"uvicorn": "0.38.0",
"websockets": "15.0.1"
},
"Optional Dependencies": {
"altair": "6.0.0",
"duckdb": "1.4.2",
"loro": "1.10.0",
"mcp": "1.23.1",
"nbformat": "5.10.4",
"openai": "2.9.0",
"pandas": "2.3.3",
"polars": "1.35.2",
"pyarrow": "22.0.0",
"pytest": "9.0.2",
"python-lsp-ruff": "2.3.0",
"python-lsp-server": "1.14.0",
"ruff": "0.14.8",
"sqlglot": "28.1.0",
"ty": "0.0.1a32",
"vegafusion": "2.0.3"
},
"Experimental Flags": {
"performant_table_charts": true,
"chat_modes": true,
"external_agents": true,
"inline_ai_tooltip": true,
"rtc_v2": true
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions