drop the config and /applied mounts: an agent reads its config by cloning agent-configs, and the prompt says so
This commit is contained in:
parent
a781addcfe
commit
3c09e14a76
1 changed files with 103 additions and 288 deletions
|
|
@ -227,9 +227,7 @@ in
|
|||
# bind-mounted into a `ManageRootAgent` holder's container, which
|
||||
# would clobber the ownership those dirs' own activation scripts set
|
||||
# — producing intermittent EACCES for that agent's harness between
|
||||
# the holder's rebuild and its own next activation. Config dirs are
|
||||
# kept broad because the holder legitimately owns the proposed-config
|
||||
# repos it edits.
|
||||
# the holder's rebuild and its own next activation.
|
||||
if [ -d "/agents/$userName/state" ]; then
|
||||
heal_own_dir "/agents/$userName/state"
|
||||
fi
|
||||
|
|
@ -259,15 +257,6 @@ in
|
|||
&& chmod 0751 "$socketDir" \
|
||||
|| echo "hive-agent-user-migrate: could not hand $socketDir to $userName; the harness cannot bind its sockets" >&2
|
||||
fi
|
||||
# The proposed-config repo is RW-mounted into the editing 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 fails with
|
||||
# EROFS on every run: deliberately silent, unlike the dirs above.
|
||||
for configDir in /agents/*/config; do
|
||||
[ -d "$configDir" ] || continue
|
||||
chown -hR "$userName:$userName" "$configDir" 2>/dev/null || true
|
||||
done
|
||||
if [ -d "$homeDir/.claude" ]; then
|
||||
heal_own_dir "$homeDir/.claude"
|
||||
# 0755 so hive-core (a different unix user) can list the dir and
|
||||
|
|
|
|||
Loading…
Reference in a new issue