fix: 补齐 Webterm provider 可见性

This commit is contained in:
Codex
2026-07-11 12:18:21 +02:00
parent a912325697
commit 925e394169
3 changed files with 80 additions and 4 deletions
+6
View File
@@ -7,6 +7,12 @@
- 预览使用 `bun scripts/cli.ts platform-infra webterm plan --target <target>`
- 部署使用 `bun scripts/cli.ts platform-infra webterm apply --target <target> --confirm`
- 收口使用同一入口的 `status``validate`
- 日志使用 `bun scripts/cli.ts platform-infra webterm logs --target <target> --tail <lines>`
- 日志默认返回最近 100 行,`--tail` 允许范围为 1 到 1000 行,且总输出保持有界。
- 匿名健康与 provider 判定:
- Webterm `/healthz` 无需登录,返回 `ok``providers``sessions`
- `apply``status``validate` 必须读取 `/healthz`,且只在 `ok=true``providers>=1` 时判定本地运行面健康;
- `/login` 可访问不能替代 provider 健康证据。
- 浏览器历史策略:
- `browserTerminalHistory.desktopScrollbackLines` 控制桌面端 xterm 历史行数;
- `browserTerminalHistory.mobileScrollbackLines` 控制移动端 xterm 历史行数;