fix: follow up on router autostart and supervisor lifecycle - #20
Open
LeaningLearner wants to merge 1 commit into
Open
fix: follow up on router autostart and supervisor lifecycle#20LeaningLearner wants to merge 1 commit into
LeaningLearner wants to merge 1 commit into
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.
背景
这是上一次 DSCodex 路由器自动启动和生命周期管理相关 PR 的后续补充修复。
上一次 PR 合入后,进一步进行了代码审查、并发测试和故障注入测试,发现 supervisor 所有权识别、崩溃退避期间停止、自动启动失败回滚以及 Windows 任务计划程序清理等场景仍存在边界问题。
本 PR 不改变 DSCodex 的核心路由行为,主要增强路由器监督机制和跨平台自动启动功能在异常情况下的可靠性。
概述
增强 DSCodex 路由器 supervisor 和各平台自动启动功能,重点处理以下场景:
目标是确保 DSCodex 可以可靠识别当前 supervisor 实例、安全停止路由器,并在自动启动配置失败时恢复原有运行状态。
主要变更
Supervisor 所有权与实例认证
崩溃恢复与安全停止
stop在路由器崩溃后的重启退避期间取消 supervisor。文件系统兼容性
EPERM、ENOTSUP的文件系统。跨平台自动启动回滚
Windows 任务计划程序
禁用与卸载清理
Catalog 就绪检查
doctor可以确认 DeepSeek V4 Flash 与 Pro 条目是否存在。依赖锁文件
package-lock.json。1.1.0。0.6.0的锁文件。测试覆盖
新增和扩展的测试覆盖以下场景:
EPERM或ENOTSUP;验证结果
执行:
npm test结果:
同时执行:
git diff --check检查通过,没有发现空白字符错误。