fix ssh tcp pool transient diagnostics

This commit is contained in:
Codex
2026-06-13 17:19:08 +00:00
parent 1ec60de8bb
commit 2cf767b635
7 changed files with 285 additions and 5 deletions
+8
View File
@@ -153,6 +153,14 @@ bun scripts/cli.ts debug health
在输出或 frontend 原始 JSON 里看这些 labels`providerGatewaySshDataTransport=tcp-pool``providerGatewaySshDataPoolReady``providerGatewaySshDataPoolClaimed``providerGatewaySshDataPoolDesired``providerGatewaySshDataPoolLastError`
单个 provider 的低噪声池状态:
```bash
bun scripts/cli.ts debug ssh-pool D601
```
如果 `trans`/`tran` stderr 出现 `UNIDESK_SSH_TCP_POOL_HINT`,优先按其中的 `failureKind` 处理:`provider-data-channel-closed` 表示会话中途 data channel 断开,`provider-data-channel-missing` 表示 core/provider 对 channel 状态不一致,`provider-data-pool-exhausted` 表示没有空闲 channel。对幂等受控操作先查 `debug ssh-pool <provider>`,再重试原受控 CLI;不要把这类 hint 单独定性为远端 runtime 配置失败。
快速验证 D601 维护桥:
```bash