fix(setup): record install-source repo path for self-update (#958) - #977
Merged
Conversation
resolve_repo() falls back to $HOME/ccc-node, which does not exist on the 8 nodes serving from /opt/ccc-node — ccc-self-update aborted no-repo on every tick until hand-written ~/.claude/self-update.repo overrides were dropped in, and every new node/reinstall would hit the same trap. setup.sh now records its own repo path ($SRC) into ~/.claude/self-update.repo at install time. The file stays operator-owned: an identical entry is a no-op, a differing entry is preserved with a warning (setup never silently rewrites operator state), and dry-run writes nothing. Closes #958
seoseo-ai
approved these changes
Aug 6, 2026
seoseo-ai
left a comment
Collaborator
There was a problem hiding this comment.
Approved after explicit operator authorization using the local seoseo-ai credential.
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.
문제 (#958)
ccc-self-update.sh의resolve_repo()최종 폴 back이$HOME/ccc-node인데, 12노드 중 8노드의 실제 서빙 체크아웃은/opt/ccc-node— 설치 원본 경로가 어디에도 기록되지 않아 매 실행이abort reason=no-repo(조기 abort라 notify도 없음). 2026-08-05 노드별 수동 오버라이드로 임시 해소했으나 신규 노드·재설치 시 재발.수정
setup.sh가 설치 시점에 자기 repo 경로($SRC)를~/.claude/self-update.repo에 기록 (resolve_repo 우선순위: env > 이 파일 > 스크립트 위치 추론 > ~/ccc-node)검증
후속 효과: 다음 전노드 self-update 사이클에서 setup.sh가 각 노드에 올바른 경로를 자동 기록 — 8노드의 수동 오버라이드는 동일 값이라 no-op으로 흡수됨(gongmyoung처럼 의도적 다른 값은 보존).
Closes #958