### What it is for 目前,ELY 根据 Shell 命令的退出状态来确定返回异常与否从而反应人物情绪。 当前的实现存在若干局限性: 1. 在启动交互式进程,例如 cmd, pwsh, ssh 等,当子进程正在运行时,ELY 无法可靠地追踪 Shell 状态。 2. [BUG] 例如,在输入 cmd 之后,返回的状态将会一直出于交互式进程之前返回的状态。(和此 Feature Request 相关故写在同一个issue中) 3. 这会导致人物不会更新。 4. 只有该进程会话终止,例如 Ctrl D 或者 exit 之后,本地 Shell 才会收到 SSH 进程的退出状态。 5. (测试的时候发现 cmd 和 ssh 的 exit 会返回最后一个指令的状态,但 pwsh / powershell 不会) 测试基于 Windows 平台,Linux 和 Mac 尚未测试,Linux之后可以测试,将会在 Issue Thread 里面更新。 ### How it should work 即使在交互式进程,例如 cmd, pwsh, powershell, ssh 进程中返回的状态也可以被实时捕获。特别是 ssh 这对服务器管理特别有用。 ### References Item 2 Screenshot <img width="614" height="668" alt="Image" src="https://github.com/user-attachments/assets/e688fbcc-be05-4909-9ae8-e98d695ebdef" /> Item 1 Screenshot <img width="611" height="664" alt="Image" src="https://github.com/user-attachments/assets/cd4c1aa6-317f-4077-8dae-d6ed80421bfb" /> ### Checked - [x] I searched the open issues for the same request.
Activity
Raiden-MeixElysia commentedon Oct 31, 2026
0.2.1 处理(https://github.com/ELY-Open-Source/ELYTerminal/releases/tag/v0.2.1):命令一开始(OSC 133 C)就清掉上一条命令的失败状态,所以运行 ssh、cmd 或嵌套 shell 时会话行和 Ely 保持平静,结束后再显示退出码;Ely 也随之即时恢复。cmd 会话,以及在 PowerShell 中直接输入的
cmd,现在会标记提示符并报告目录,exit 7的退出码也会带回 PowerShell。限制:ssh 远端、嵌套的 PowerShell、在 WSL 或 Git Bash 中手动启动的 shell 没有集成,运行期间不会上报各自命令的状态。