fix: fix: agent identity resolution copy-pasted 5 times — use resolve_agent_identity() (#280)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
67d11631cc
commit
d1b9d54693
5 changed files with 5 additions and 20 deletions
|
|
@ -61,10 +61,7 @@ fi
|
|||
# =============================================================================
|
||||
# RESOLVE AGENT IDENTITY FOR .PROFILE REPO
|
||||
# =============================================================================
|
||||
if [ -z "${AGENT_IDENTITY:-}" ] && [ -n "${FORGE_TOKEN:-}" ]; then
|
||||
AGENT_IDENTITY=$(curl -sf -H "Authorization: token ${FORGE_TOKEN}" \
|
||||
"${FORGE_URL:-http://localhost:3000}/api/v1/user" 2>/dev/null | jq -r '.login // empty' 2>/dev/null || true)
|
||||
fi
|
||||
resolve_agent_identity || true
|
||||
|
||||
# =============================================================================
|
||||
# MEMORY GUARD
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue