mirror of
https://github.com/open-webui/computer.git
synced 2026-11-05 01:17:24 +00:00
[GH-ISSUE #251] bug: interactive terminal session freezes long-running processes when the browser client disconnects #163
Labels
No labels
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/computer#163
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @1-kabir on GitHub (Sep 5, 2026).
Original GitHub issue: https://github.com/open-webui/computer/issues/251
bug: interactive terminal session freezes long-running processes when the browser client disconnects
Bug description
Interactive (PTY) terminal sessions only drain their PTY output while a
browser WebSocket client is attached. If the client disconnects — closed tab,
suspended laptop, browser backgrounded/killed — nothing reads the PTY master
fd anymore, and the kernel PTY buffer (~64 KB) eventually fills up. Any
long-running process attached to the terminal (e.g. a CLI agent, a build, a
tail) then blocks on
write()until a client reconnects. Output producedwhile detached is also lost beyond the kernel buffer.
This makes the terminal unusable as a place to run anything long-lived that
produces output.
To Reproduce
yes | head -c 100Mor a long build).Expected behavior
The child process should keep running — and its output should be retained —
independently of whether a browser client is connected, similar to how
command sessions already buffer output.
Suggested approach
terminal_wsa subscriber that tails the session buffer via byte offset (same pattern as command sessions) instead of being the sole reader; reconnecting clients resume from their offset.visibilitychangeif the connection died while the tab was hidden (browsers throttle/suspend background tabs and can silently kill the socket).Environment
@owui-terminator[bot] commented on GitHub (Sep 5, 2026):
🔍 Related Issues Found
I found some existing issues that might be related. Please check if any of these are duplicates or contain helpful solutions:
Both reports describe long-running work becoming unusable because a background execution path stops making forward progress and buffered output/state is not preserved when the run is interrupted. While #213 is about an agent session rather than a PTY terminal, it is closely related in the failure mode of indefinite blocking and lost output when the session is no longer actively driven.
by ThalynLabs
💡 If your issue is a duplicate, please close it and add any additional details to the existing issue instead.
This comment was generated automatically. React with 👍 if helpful, 👎 if not.