fix(queue-daemon): source pm-agent.env at startup to load GITEA_TOKEN #161

Closed
shoko wants to merge 2 commits from fix/issue-160-queue-daemon-gitea-token into main
Owner

Summary

  • Source pm-agent.env at daemon startup to load GITEA_TOKEN environment variable
  • Fixes crash with 'unbound variable' error when daemon tries to delegate tasks

Root Cause

The queue daemon was only sourcing default.env which doesn't contain GITEA_TOKEN. When the daemon spawned a subshell for cmd_continue, the subshell couldn't expand ${GITEA_TOKEN:-} because the variable wasn't set.

Fix

Call load_agent_env 'pm-agent' at daemon startup to source ~/.kugetsu/env/pm-agent.env

Fixes #160

## Summary - Source pm-agent.env at daemon startup to load GITEA_TOKEN environment variable - Fixes crash with 'unbound variable' error when daemon tries to delegate tasks ## Root Cause The queue daemon was only sourcing default.env which doesn't contain GITEA_TOKEN. When the daemon spawned a subshell for cmd_continue, the subshell couldn't expand ${GITEA_TOKEN:-} because the variable wasn't set. ## Fix Call load_agent_env 'pm-agent' at daemon startup to source ~/.kugetsu/env/pm-agent.env Fixes #160
shoko added 1 commit 2026-04-06 01:36:03 +02:00
shoko added 1 commit 2026-04-06 01:36:57 +02:00
shoko closed this pull request 2026-04-06 01:42:16 +02:00

Pull request closed

Sign in to join this conversation.