fix: address setup, upgrade, and process test regressions

This commit is contained in:
morluto
2026-07-15 06:34:25 +00:00
parent 90ba7b03da
commit 02f12b927a
6 changed files with 72 additions and 19 deletions
+3 -2
View File
@@ -421,10 +421,11 @@ try {
alignedExecution.status !== (status === "ready" ? 0 : 1) ||
aligned.plannedActions.length !== 0 ||
aligned.appliedActions.length !== 0 ||
second.appliedActions.length !== 0
!second.plannedActions.some(({ kind }) => kind === "install_hopper") ||
!second.appliedActions.includes("installed_hopper")
)
throw new Error(
`packaged setup was not ready and idempotent without confirmation: ${JSON.stringify({ first, aligned, second })}`,
`packaged setup did not preserve idempotent defaults and explicit Hopper reinstall behavior: ${JSON.stringify({ first, aligned, second })}`,
);
for (const configPath of [claudeConfig, cursorConfig]) {
const config = json(await readFile(configPath, "utf8"));