diff --git a/bin/mempalace-pi-session b/bin/mempalace-pi-session index b24724c..eb75226 100755 --- a/bin/mempalace-pi-session +++ b/bin/mempalace-pi-session @@ -135,7 +135,16 @@ set -euo pipefail export HOME # ── Defaults ───────────────────────────────────────────────────────── -AGENT="${USER:-mempalace}" +# Agent name defaults to "@" when the device is known +# (MEMPALACE_PI_DEVICE is set on every enrolled devbox). That one string is the +# only place a palace write records BOTH which harness produced it and which +# machine it came from: mempalace core 3.7.1 stamps neither, and because every +# client shares one bearer token the server cannot tell them apart either. The +# per-device inbox path and the pi_*.jsonl filename encode the same two facts +# only incidentally, so anything filed outside the feeder had to be inferred. +# Falls back to $USER — which is what every drawer filed before this carries. +AGENT="${MEMPALACE_PI_DEVICE:+pi@${MEMPALACE_PI_DEVICE}}" +AGENT="${AGENT:-${USER:-mempalace}}" WING="wing_conversations" SESSION_ID="" SINCE=""