-
Notifications
You must be signed in to change notification settings - Fork 774
Open
Labels
enhancementNew feature or requestNew feature or requestwontfixThis will not be worked onThis will not be worked on
Description
Feature description
功能建议:SSH 连接状态指示
当前使用场景:
- 在 Wave 中打开本地终端,通过
ssh user@host连接远程服务器。 - Wave 右侧终端面板会显示“running command 'ssh ...'”。
- 现在要判断连接是否还活跃,只能通过:
- 看提示符是不是远程的
user@host:~#, - 或者按回车,看有没有响应,
- 或自己写一个循环
echo的“心跳”命令。
- 看提示符是不是远程的
问题:
- 对于长时间挂着的 SSH 会话,很难一眼判断“这条 SSH 连接现在到底还在不在”。
- SSH 进程有时会因为网络问题卡死,看上去还在“running”,但实际上连接已经不可用,需要用户自己再去测试。
- 对新用户来说,不太直观。
Current usage:
- Using a local terminal in Wave and connecting to a remote server via
ssh user@host. - The terminal widget shows
running command "ssh ..."on the header. - To check whether the SSH connection is still alive, I currently have to:
- Look at the prompt (
user@host:~#vs local prompt), - Press Enter and see if there is a response, or
- Run a custom “heartbeat” loop that periodically
echos something.
- Look at the prompt (
Problems:
- For long‑running SSH sessions, it’s not obvious at a glance whether the SSH connection is still active.
- Sometimes the ssh process can hang due to network issues: the process is still “running”, but the connection is effectively dead, which requires manual testing by the user.
- This is not very intuitive, especially for less experienced users.
Implementation Suggestion
我现在没法直接把反馈“发”给 Wave 团队,但可以帮你写一份比较完整的需求描述,你可以复制后:
- 发到你拿到 Wave 的渠道(Slack、Github issues、邮件等),或者
- 以后如果 Wave 内置反馈入口,也可以直接贴进去。
你可以用下面这段(中英文都给你):
中文版本:
功能建议:SSH 连接状态指示
当前使用场景:
- 在 Wave 中打开本地终端,通过
ssh user@host连接远程服务器。 - Wave 右侧终端面板会显示“running command 'ssh ...'”。
- 现在要判断连接是否还活跃,只能通过:
- 看提示符是不是远程的
user@host:~#, - 或者按回车,看有没有响应,
- 或自己写一个循环
echo的“心跳”命令。
- 看提示符是不是远程的
问题:
- 对于长时间挂着的 SSH 会话,很难一眼判断“这条 SSH 连接现在到底还在不在”。
- SSH 进程有时会因为网络问题卡死,看上去还在“running”,但实际上连接已经不可用,需要用户自己再去测试。
- 对新用户来说,不太直观。
期望的功能:
- 在终端 tab 或终端 header 显示更直观的 SSH 状态,比如:
- “SSH: connected” / “SSH: disconnected”
- 或在 tab 名上加一个小图标(绿色/灰色)表示连接状态。
- 当检测到 SSH 进程退出或连接断开时:
- 有一个非打扰式提示(例如在终端顶部显示一行 “SSH connection to host closed”)。
3.(可选)如果可能的话,对常见 ssh 命令做轻量识别(如ssh user@host),自动给这个 tab 打上“SSH to host”标签,方便区分不同服务器的会话。
- 有一个非打扰式提示(例如在终端顶部显示一行 “SSH connection to host closed”)。
这样可以提升:
- 长时间运维、调试远程服务时的可视性;
- 初级用户判断“我现在是在本机还是远程机上”的清晰度;
- 快速定位连接何时断开,而不需要靠手动尝试命令。
当前环境:
- Local Machine: macOS 15.7.3 (arm64), User: robin
- Open Widget: local CLI terminal (zsh 5.9), running command
ssh root@163.7.2.196, in/Users/robin.
English version:
Feature request: SSH connection status indicator
Current usage:
- Using a local terminal in Wave and connecting to a remote server via
ssh user@host. - The terminal widget shows
running command "ssh ..."on the header. - To check whether the SSH connection is still alive, I currently have to:
- Look at the prompt (
user@host:~#vs local prompt), - Press Enter and see if there is a response, or
- Run a custom “heartbeat” loop that periodically
echos something.
- Look at the prompt (
Problems:
- For long‑running SSH sessions, it’s not obvious at a glance whether the SSH connection is still active.
- Sometimes the ssh process can hang due to network issues: the process is still “running”, but the connection is effectively dead, which requires manual testing by the user.
- This is not very intuitive, especially for less experienced users.
Requested behavior:
- Show a more explicit SSH status on the terminal tab or header, e.g.:
- “SSH: connected” / “SSH: disconnected”, or
- a small colored icon (green/gray) to indicate connection state.
- When the SSH process exits or the connection is closed:
- display a non-intrusive notice like “SSH connection to host closed” in the terminal header.
- (Optional) If feasible, lightly detect common ssh commands (like
ssh user@host) and automatically tag that tab as “SSH to host” to distinguish different remote sessions.
Benefits:
- Better visibility for long‑running remote debugging / operations sessions.
- Clearer indication for whether I’m on the local machine or a remote host.
- Easier to see when/if a connection has dropped without having to run extra commands.
Current environment:
- Local Machine: macOS 15.7.3 (arm64), User: robin
- Widget: local CLI terminal (zsh 5.9), running
ssh root@163.7.2.196in/Users/robin.
你可以根据自己习惯稍微改两句,然后直接发给你那边的 Wave 渠道就行。需要我帮你缩短成一两句话版的,也可以说。
Anything else?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestwontfixThis will not be worked onThis will not be worked on