agents: fix ${SECRETS_JSON:-{}} brace bug (caller skills silently skipped) #68

Merged
ffaerber merged 1 commits from fix/caller-skills-brace-bug into main 2026-07-05 17:32:24 +02:00
Owner

${VAR:-{}} appends a stray } when VAR is set, corrupting the JSON passed to a caller skill's setup.sh → its jq fails (Unmatched }) → the skill is skipped. This is why node1-ssh never installed. Fixed in install-caller-skills.sh (+ the companion homelab setup.sh).

`${VAR:-{}}` appends a stray `}` when VAR is set, corrupting the JSON passed to a caller skill's `setup.sh` → its `jq` fails (`Unmatched }`) → the skill is skipped. This is why **node1-ssh never installed**. Fixed in `install-caller-skills.sh` (+ the companion homelab `setup.sh`).
ffaerber added 1 commit 2026-07-05 17:32:23 +02:00
`${VAR:-{}}` appends a stray '}' when VAR is set (bash brace-matching), so the
JSON handed to a caller skill's setup.sh was corrupted and its jq failed with
"Unmatched '}'" — install-caller-skills.sh then caught the non-zero exit and
skipped the skill. Default SECRETS_JSON in two safe steps and pass it as a plain
var. This is why node1-ssh never installed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
ffaerber merged commit 01497e9ebe into main 2026-07-05 17:32:24 +02:00
ffaerber deleted branch fix/caller-skills-brace-bug 2026-07-05 17:32:25 +02:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gitea/agents#68