Sandbox stuck in unrecoverable Error phase after supervisor session drops (SSH disconnect); stop/start refuse to act
还没有人认领这个 Issue。
评估
调研方向
首先使用提供的网关日志和复现步骤,追踪报告的 sandbox stop 和 sandbox start 错误背后的 supervisor 会话处理和 sandbox 阶段验证。完成的标准是:SSH 连接断开后不再破坏恢复能力,或者通过明确的恢复路径恢复 sandbox,同时不丢弃 /sandbox。
由索引模型根据 Issue 内容生成。
描述
Summary
When the SSH connection carrying a sandbox's supervisor session drops (e.g. client-side "Broken pipe"), the sandbox transitions to Phase: Error and there is no way to recover it short of sandbox delete + sandbox create. sandbox stop and sandbox start both refuse to act on an Error-phase sandbox, so the workspace inside /sandbox is unrecoverable.
Steps to reproduce
openshell sandbox create(image/policy runningopenclaw-startas main command)- Attach interactively over SSH and run through a long-running foreground process (e.g. an onboarding wizard)
- Let the SSH client disconnect mid-session (e.g. network blip →
client_loop: send disconnect: Broken pipe) openshell sandbox get <name>→Phase: Erroropenshell sandbox stop <name>→Error: sandbox must be Ready to stop (current phase: Error)openshell sandbox start <name>→Error: sandbox must be Stopped to start (current phase: Error)
Relevant logs
[1789391074.213] [gateway] [WARN ] supervisor session: stream error
[1789391074.213] [gateway] [INFO ] supervisor session: ended
(log capture was truncated at time of report)
Expected
Either:
- The supervisor session should be independent of the client SSH connection that carries it (a network drop on the client side shouldn't kill the sandbox), or
Errorphase should have a documented recovery path (e.g.sandbox stop --force/sandbox recover) that doesn't discard the workspace.
Actual
The only path out of Error phase is sandbox delete, which discards the sandbox's workspace with no export/backup step offered.
openshell version: 0.0.116
- 主要语言
- Rust
- 星标
- 8.7k
- 派生
- 1.3k
- 平均合并
- 2 天 6 小时
- 30 天内合并 PR
- 297
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NVIDIA/OpenShell 的其他 Issue
-
area:docs
难度 1/5 1 小时以内 新手友好度 88/100
-
state:triage-needed
难度 2/5 1-3 小时 新手友好度 82/100
-
area:cli state:validated
难度 2/5 1-3 小时 新手友好度 72/100
-
state:triage-needed
难度 1/5 1 小时以内 新手友好度 90/100
-
area:build spike state:review-ready state:stale
难度 2/5 半天 新手友好度 68/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
TheLarkInn/aipm#2413 ·
-
documentation
难度 1/5 1 小时以内 新手友好度 90/100
alexgorbatchev/simple-ptt#15 ·
-
tooling
难度 2/5 1-3 小时 新手友好度 75/100
-
todo:ticket
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 75/100
taikoxyz/taiko-mono#22168 · 1 条评论 ·