feat: harden local shell, SFTP, and desktop session reliability
Finder-launched terminals now inherit a login PATH so tools like ollama resolve, destructive SFTP/editor actions require confirmation, and terminal search plus window dragging work again. SSH forwards and RDP sessions keep listeners and survive reconnect without FastPath crashes. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
188f3556ed
commit
08696896f9
223 files changed
+13493
-3423
No files matched your search
@@ -0,0 +1,38 @@
|
||||
# test/patrol — 基础能力巡检
|
||||
|
||||
面向 SSH / SFTP / RDP / VNC 等基础回归,避免改 UI 或授权后无验收就引入回归。
|
||||
|
||||
与同级其他测试的关系:
|
||||
|
||||
| 路径 | 用途 |
|
||||
|------|------|
|
||||
| `test/**` | 单元、组件、原有 acceptance 细测 |
|
||||
| `test/patrol/` | 跨模块基础巡检;改功能后应优先跑 |
|
||||
|
||||
## 命令
|
||||
|
||||
```bash
|
||||
# 只跑巡检
|
||||
npm run test:patrol
|
||||
|
||||
# 快速验收(含 typecheck + 全量 vitest,已包含本目录)
|
||||
npm run acceptance:quick
|
||||
```
|
||||
|
||||
## 覆盖面
|
||||
|
||||
- `contracts` — 平台契约与协议默认值
|
||||
- `ssh` — SSH 会话创建 / 打开终端
|
||||
- `sftp` — 双栏、上级目录、远程 mkdir、拖拽传输
|
||||
- `desktop` — RDP / VNC 连接对话框与 open-tab 载荷
|
||||
|
||||
真实远程主机联调不在此目录(需本机 target);此处用 mock 原生 API 做渲染层 + 契约巡检。
|
||||
|
||||
异常路径也用 mock 锁住(不连真机):
|
||||
|
||||
- 列目录 Permission denied → 多语言错误条 + toast
|
||||
- 传输忙 / MaxSessions 通道失败 → 忙提示或重连条
|
||||
- SFTP 会话丢失 → 重连条
|
||||
- 上传失败 / 超 2MB 编辑 → toast 映射
|
||||
- 同名覆盖确认(覆盖/跳过)与失败任务重试
|
||||
- 断线后一键重连并恢复上次远程目录
|
||||
Reference in new issue
Block a user