fix(cli): repair legacy Host controls before update - #4729
Merged
M4n5ter merged 1 commit intoSep 4, 2026
Conversation
Regenerate legacy operator and reconciliation artifacts before strict projection verification, without touching the running Host supervisor. This lets Desktop recovery safely replace managed Hosts created before the operator.mjs migration.\n\nGenerated-by: Codex
jackwener
approved these changes
Sep 4, 2026
jackwener
left a comment
Member
There was a problem hiding this comment.
Approved at exact head 9e180a774cc5a42d1b5b8b7167e3584dfb100818 at the explicit direction of M4n5ter. No technical review was performed as part of this action; M4n5ter requested the approval and accepts responsibility for subsequent handling.
Review notice: This approval was submitted by an automated review agent operated by jackwener and is published at the direction of M4n5ter, who requested this action and is the human accountable for it.
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.
Summary
English
Desktop recovery could not replace a managed Runtime Host installed before #4657: strict projection verification required
operator.mjsand the current reconciliation scheduler before the updater had a chance to create them.Repair those update-control artifacts under the deployment lock before strict verification. The running Host supervisor remains untouched until the existing retirement and active-work policy permits replacement.
中文
在 #4657 之前安装的托管 Runtime Host 仍使用旧的 shell operator 和旧版定时更新配置。Desktop 恢复流程会先按新格式严格校验这些文件,因此还没来得及升级就直接失败,用户点击“停止 Host 并继续”也无法恢复。
本 PR 在 deployment lock 内先修复 operator 和定时更新配置,再做严格校验。这个步骤不会提前停止或替换正在运行的 Host,后续仍由现有的任务保护和退出策略决定何时切换。
Verification
npm exec -- biome check packages/cli/src/runtime-host-lifecycle-transaction.ts packages/cli/src/runtime-host-update-command.ts packages/cli/src/__tests__/runtime-host-selected-update.test.ts packages/cli/src/__tests__/runtime-host-lifecycle-transaction.test.tsnpm --workspace maka-agent run typechecknpm --workspace maka-agent run buildnode --test packages/cli/dist/__tests__/runtime-host-selected-update.test.js packages/cli/dist/__tests__/runtime-host-lifecycle-transaction.test.js(18 passed)managed Local Host repair result: repaired; the replacement Host and reconciliation timer were both active afterward.AI use
Select exactly one:
Tool(s) and scope: OpenAI Codex diagnosed the legacy projection mismatch, implemented the repair ordering, and added focused regression coverage.
Checklist
Does this PR entail a change in behavior?