refactor(lib): target correct data subfolder for cline isolation seeding
- Place data/settings/ and data/globalState.json inside isolation root - Align directories with cli --data-dir internal structure to prevent startup authentication crashes
This commit is contained in:
@@ -797,15 +797,15 @@ provision_isolation() {
|
|||||||
if [ -d "$HOME/.claude/plugins" ]; then ln -sfn "$HOME/.claude/plugins" "$root/plugins"; seeded="$seeded,plugins"; fi
|
if [ -d "$HOME/.claude/plugins" ]; then ln -sfn "$HOME/.claude/plugins" "$root/plugins"; seeded="$seeded,plugins"; fi
|
||||||
;;
|
;;
|
||||||
cline)
|
cline)
|
||||||
# Phase 0 실측: --config 공유 지정만으론 auth 미공유 — settings/* + globalState.json 시딩 필수
|
# CLI 가 --data-dir <root> 를 읽을 때 내부적으로 <root>/data/ 하위를 뒤지므로 경로 정합성 조치
|
||||||
mkdir -p "$root/settings"
|
mkdir -p "$root/data/settings"
|
||||||
for f in "$HOME/.cline/data/settings/"*; do
|
for f in "$HOME/.cline/data/settings/"*; do
|
||||||
[ -e "$f" ] || continue
|
[ -e "$f" ] || continue
|
||||||
base="$(basename "$f")"
|
base="$(basename "$f")"
|
||||||
ln -sfn "$f" "$root/settings/$base"; seeded="${seeded:+$seeded,}settings/$base"
|
ln -sfn "$f" "$root/data/settings/$base"; seeded="${seeded:+$seeded,}data/settings/$base"
|
||||||
done
|
done
|
||||||
if [ -e "$HOME/.cline/data/globalState.json" ]; then
|
if [ -e "$HOME/.cline/data/globalState.json" ]; then
|
||||||
ln -sfn "$HOME/.cline/data/globalState.json" "$root/globalState.json"; seeded="${seeded:+$seeded,}globalState.json"
|
ln -sfn "$HOME/.cline/data/globalState.json" "$root/data/globalState.json"; seeded="${seeded:+$seeded,}data/globalState.json"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
agy)
|
agy)
|
||||||
|
|||||||
Reference in New Issue
Block a user