mirror of
https://github.com/Termix-SSH/Mobile.git
synced 2026-04-26 00:05:55 +03:00
[PR #8] feat: SSH session persistence across app background/foreground #6
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Mobile#6
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?
📋 Pull Request Information
Original PR: https://github.com/Termix-SSH/Mobile/pull/8
Author: @ZacharyZcR
Created: 2/22/2026
Status: 🔄 Open
Base:
dev-1.3.0← Head:feat/session-persistence📝 Commits (1)
4bf62fafeat: add SSH session persistence for background/foreground transitions📊 Changes
2 files changed (+67 additions, -15 deletions)
View changed files
📝
app/tabs/sessions/terminal/NativeWebSocketManager.ts(+60 -11)📝
app/tabs/sessions/terminal/Terminal.tsx(+7 -4)📄 Description
Summary
attachSessionto reattach with buffered output replay instead of creating a new SSH connection.sessionCreated,sessionAttached,sessionExpired(auto-fallback to fresh connect), andsessionTakenOver(multi-device graceful disconnect).disconnecton component destroy to clean up server-side sessions when the user intentionally closes a terminal tab.Files Changed
app/tabs/sessions/terminal/NativeWebSocketManager.tsserverSessionId, conditionalattachSessionvsconnectToHost, new message handlersapp/tabs/sessions/terminal/Terminal.tsxhasReceivedDataclear on reattachTest plan
session_destroyed)npx tsc --noEmitshows no new errors beyond pre-existing upstream issuesFixes Termix-SSH/Support#364
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.