Skip to content

fix: protect dotfiles sources and report install failures accurately - #183

Merged
fullstackjam merged 1 commit into
mainfrom
codex/install-recovery
Nov 17, 2026
Merged

fullstackjam merged 1 commit into
mainfrom
codex/install-recovery

Conversation

@fullstackjam

Copy link
Copy Markdown
Member

What does this PR do?

修复安装失败场景:保护通过目录软链接部署的 dotfiles 源文件,保留完整 Brew 错误,并按实际阶段结果展示完成摘要。

Why?

已有 skill 目录链接指向 dotfiles 源码时,冲突备份仅检查文件自身,可能沿父目录链接备份并删除源文件,导致后续安装遗漏 skills。现在遇到目标目录软链接便跳过该子树;清理已不存在的备份视为完成。

Brew 失败输出原先被截断,最终汇总还保留第一次失败的旧错误。现在最终失败报告保留完整输出及最新重试错误,进度行保持简短。完成摘要不再把计划包数量误报为安装成功数量,改为各阶段执行结果,包明细保留在安装阶段。

Testing

  • go vet ./... passes
  • Relevant tests added or updated:目录软链接保护、完整重试错误、完成摘要
  • Tested locally:make test-unit(含 race、集成及 dry-run 测试)通过;golangci-lint run ./... 无告警
  • 未在本机执行真实安装或 L4;由 PR CI 验证 L4。

Cross-repo checklist

  • 已核对:无需 openboot.dev 文档或内容更新
  • 已核对:CLI ↔ server API contract 不变

Notes for reviewer

架构基线仅更新已有 subprocess 调用的行号,没有新增豁免。没有修改重试次数、网络代理配置、安装顺序或安装数据格式。此次 PR 不包含工作区内其他进行中的改动。

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-17T14:46:51.159897Z
We couldn’t complete this review. Comment @codex review to try again.
58a246d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@github-actions github-actions Bot added installer Package installation logic brew Homebrew related tests Tests only labels Nov 17, 2026
Skip linked target directories during conflict backup, preserve full brew failure output and the latest retry error, and summarize actual step outcomes instead of planned package counts. Architecture baseline changes only track shifted existing subprocess call sites; no new exemption is introduced.
@fullstackjam
fullstackjam force-pushed the codex/install-recovery branch from 43d3d58 to bcfed0f Compare November 17, 2026 15:49
@fullstackjam
fullstackjam merged commit 379f103 into main Nov 17, 2026
12 of 13 checks passed
@fullstackjam
fullstackjam deleted the codex/install-recovery branch November 17, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

brew Homebrew related installer Package installation logic tests Tests only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant