fix(queue-daemon): source pm-agent.env for GITEA_TOKEN instead of default.env #162

Merged
shoko merged 1 commits from fix/issue-160-gitea-token-from-pm-agent into main 2026-04-06 01:42:05 +02:00
Owner

Summary

  • Change queue daemon to source pm-agent.env instead of default.env for GITEA_TOKEN
  • The pm-agent.env contains GITEA_TOKEN which is needed for the daemon to spawn agent sessions

Root Cause

Issue #160: The queue daemon crashes with 'GITEA_TOKEN: unbound variable' because it was sourcing default.env which doesn't contain the token.

Fix

Replace the hardcoded default.env source with load_agent_env 'pm-agent' call which properly sources pm-agent.env.

Fixes #160

## Summary - Change queue daemon to source pm-agent.env instead of default.env for GITEA_TOKEN - The pm-agent.env contains GITEA_TOKEN which is needed for the daemon to spawn agent sessions ## Root Cause Issue #160: The queue daemon crashes with 'GITEA_TOKEN: unbound variable' because it was sourcing default.env which doesn't contain the token. ## Fix Replace the hardcoded default.env source with load_agent_env 'pm-agent' call which properly sources pm-agent.env. Fixes #160
shoko added 1 commit 2026-04-06 01:38:30 +02:00
han approved these changes 2026-04-06 01:41:34 +02:00
han left a comment
First-time contributor

lgtm

lgtm
shoko merged commit 77b0963fa4 into main 2026-04-06 01:42:05 +02:00
Sign in to join this conversation.