chore: harden tanstack supply-chain pins - #423
Closed
myth05 wants to merge 2 commits into
Closed
Conversation
… 404ing (outsourc-e#80) (outsourc-e#155) When a backend PTY exits (user typed exit, command crashed, server recycled), the SSE stream emits 'event: exit' followed by 'event: close'. The frontend was ignoring both events, so the tab kept its now-dead sessionId. Subsequent /api/terminal-input and /api/terminal-resize calls then 404'd in a tight loop and the user saw a hung terminal until they reloaded. Fix: handle 'exit' and 'close' events in the SSE consumer: - Print a dim '[session ended (exit code N)]' line into xterm so the user knows what happened. - Clear the tab's sessionId in zustand state. handleSendInput and the resize effect both already short-circuit when sessionId is undefined, so the 404 spam stops immediately. - Print a hint that '+' opens a new tab. Auto-reconnect is intentionally not implemented here \u2014 the upstream issue was just the spurious 404s and frozen UI. If we want a 'restart session' button later, we wire it on the same handler. Co-authored-by: Eric <eric@outsourc-e.com>
Owner
|
Closing as superseded by #432. The validated fix was folded into the consolidated batch branch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verification