fix(#702): heal proposed-config ownership in agent-user-migrate
The migration chown stomped agents/<name>/config (the proposed-config repo) to hive-core like everything else, but hive-agent-user-migrate only re-chowned state/harness/.claude on boot, leaving config core-owned. config is owned by the editing parent/manager agent (core only pulls from it), so chown it to this user too. RO self-mount in an agent's own container fails harmlessly.
This commit is contained in:
parent
d272803d58
commit
40be58b0b9
1 changed files with 9 additions and 0 deletions
|
|
@ -738,6 +738,15 @@ in
|
|||
[ -d "$harnessDir" ] || continue
|
||||
chown -hR "$userName:$userName" "$harnessDir" 2>/dev/null || true
|
||||
done
|
||||
# The proposed-config repo is RW-mounted into the editing (parent/
|
||||
# manager) agent and owned by it; hive-c0re only pulls from it. Heal
|
||||
# it to this user too — same as state/harness. In an agent's own
|
||||
# container its config is RO-mounted, so the chown there just fails
|
||||
# harmlessly (|| true).
|
||||
for configDir in /agents/*/config; do
|
||||
[ -d "$configDir" ] || continue
|
||||
chown -hR "$userName:$userName" "$configDir" 2>/dev/null || true
|
||||
done
|
||||
if [ -d "$homeDir/.claude" ]; then
|
||||
chown -hR "$userName:$userName" "$homeDir/.claude" 2>/dev/null || true
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue