feat: support preserve SSH session in terminal page. - #13671
Open
HynoR wants to merge 1 commit into
Open
Conversation
HynoR
marked this pull request as ready for review
August 31, 2026 05:26
Member
|
感谢贡献,这边基本提到的都是菜单标签页的会话保持,切换菜单标签页时终端不断开,关闭对应标签页时正常释放,可以考虑用菜单标签页 KeepAlive 来实现会更加简单。 |
Contributor
Author
|
现在就是这样的 点 pin 才会挂起 我待会录个视频 |
Contributor
Author
1f.mov |
HynoR
force-pushed
the
pr/terminal-pin-session
branch
from
September 1, 2026 11:26
8b083d2 to
9f7887c
Compare
Member
Contributor
Author
Member
|
最好是可以在菜单标签页上增加一个 pin 按钮,用来单独设置,有很多页面没必要 KeepAlive |
3 tasks
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.


What this PR does / why we need it?
终端支持固定会话,固定后一段时间内不会消失,方便切换页面的时候保留当前ssh会话。
related issue:
[FEATURE]标签能不能保持终端会话连接 #4977
[FEATURE] 标签能不能保持终端会话连接
需求就是切换其他标签后终端不断开,切回来保持连接。评论里还明确建议做成终端
复用器、持久化 session 列表。与当前 PR 高度匹配。
[FEATURE]主机-终端支持保持连接 #6865
[FEATURE] 主机-终端支持保持连接
需求是切换页面时终端不关闭;上游评论已标记为重复 [FEATURE]标签能不能保持终端会话连接 #4977。
[Feature] 终端会话支持后台运行 #11778
[Feature] 终端会话支持后台运行
要求关闭标签页或浏览器后会话继续运行,并支持查看、重新连接活动会话。当前 PR
的 pinned session、后台保活、恢复输出也覆盖了这部分。
Summary of your change
新增会话ssh 服务,后台 agent 会创建一块用于管理 session 和内容的 buffer, 保活一段时间链接。
默认还是切换页面就关闭 session, 如果需要保持连接需要手动点击上面的 pin 激活
Please indicate you've done the following: