Repository navigation
Conversation
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.
长任务遇到阿里云验证码后可能停在失败状态,用户离开电脑时无法继续。本 PR 在 Windows 工具栏增加默认关闭的「保活」开关:观察新产生的验证码失败,在同账号下重启当前 ZCode,并向本轮捕获的原会话发送「继续」。
行为
实现包含中英文界面、兼容性说明、日志读取和状态机测试、会话适配测试,以及 CI 中的前端/适配检查。用户无需安装 Python、Node.js 或验证码插件;这些均不是打包功能的运行依赖。
验证
cargo test --lib:17 passed,2 个必须显式选择隔离实例的运行测试默认 ignored。npm run test:keepalive:17 passed。npm run check:i18n、npm run build、git diff --check:通过。草稿状态与边界
真实阿里云再次发出挑战后的完整自动恢复尚未现场复现,所以先提交 Draft,不能把本地模拟模型验收当作外部服务验收。会话控制复用 ZCode 内部桌面服务,并非稳定公开 API;升级后的兼容性需通过现有能力/状态检查,必要时更新适配。
当前只支持 Windows 和本地工作区。恢复集合保存在当前切换器进程内,退出后不重放旧命令;启用偏好持久化。关闭保活停止续跑,已经提交的重启会继续尝试完成启动,用户手动生命周期操作始终优先。调试接口在下一次普通 ZCode 启动后关闭。
详细设计、使用与验证边界见
docs/keepalive.md。