feat(webui): 快捷操作 nohup 进程管理 + SSH 读取修复 + UI 优化#12
Merged
massif-01 merged 1 commit intothomas-hiddenpeak:mainfrom Feb 10, 2026
Merged
feat(webui): 快捷操作 nohup 进程管理 + SSH 读取修复 + UI 优化#12massif-01 merged 1 commit intothomas-hiddenpeak:mainfrom
massif-01 merged 1 commit intothomas-hiddenpeak:mainfrom
Conversation
快捷操作(Quick Actions): - 支持 nohup 后台进程的状态检测、停止、日志查看 - 进程状态指示灯(运行中/已停止) - 服务模式就绪状态显示与自动清除 - 停止进程后自动清除后端状态变量 - PID 检测支持 fallback(PID-1)兼容 vLLM 等多进程服务 - 防止短时间内连续触发不同规则导致后端串行失败 - safeName 生成支持纯中文名称(fallback 到 cmd.id) - 保存指令时自动剥离多余的 nohup 包装 SSH 后端修复: - 修复 ts_ssh_client.c 读取循环提前退出导致日志截断 - 恢复内层 do-while 循环正确 drain stdout/stderr - 使用 libssh2_channel_eof() 作为外层循环退出条件 - 非 EAGAIN 负值错误码立即返回 ESP_FAIL - 添加 wait_rounds 超时保护防止无限循环 API 层: - api.js 增加 JSON 响应容错(WebSocket 数据污染时自动修复) UI/CSS: - 模态框关闭按钮统一定位到右上角 - 表单输入框样式统一(padding、font-size) - 按钮尺寸全站统一(.btn-sm) - 清理全部调试日志
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
ts_ssh_client.c读取循环提前退出导致日志截断的 bug,恢复正确的 stdout/stderr drain 逻辑,增加超时保护防止无限循环api.js增加 JSON 响应自动修复,处理 WebSocket 数据污染导致的解析失败Changed Files
ts_action_manager.cts_ssh_client.cstyle.cssindex.htmlapi.jsapp.jsTest Plan