@geekbeer/minion 2.16.0 → 2.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/minion-cli.sh CHANGED
@@ -361,6 +361,8 @@ Restart=always
361
361
  RestartSec=10
362
362
  EnvironmentFile=/opt/minion-agent/.env
363
363
  Environment=MINION_USER=${TARGET_USER}
364
+ Environment=HOME=${TARGET_HOME}
365
+ Environment=DISPLAY=:99
364
366
 
365
367
  [Install]
366
368
  WantedBy=multi-user.target
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geekbeer/minion",
3
- "version": "2.16.0",
3
+ "version": "2.16.1",
4
4
  "description": "AI Agent runtime for Minion - manages status and skill deployment on VPS",
5
5
  "main": "server.js",
6
6
  "bin": {
package/routes/auth.js CHANGED
@@ -102,8 +102,9 @@ function startClaudeAuth() {
102
102
  try {
103
103
  // Start claude auth login in a new tmux session
104
104
  // CLAUDECODE='' prevents the nesting check
105
+ // HOME must be set explicitly because systemd clears environment variables
105
106
  execSync(
106
- `tmux new-session -d -s ${TMUX_SESSION} -x 500 -y 40 'CLAUDECODE="" claude auth login'`,
107
+ `tmux new-session -d -s ${TMUX_SESSION} -x 500 -y 40 'HOME="${config.HOME_DIR}" CLAUDECODE="" claude auth login'`,
107
108
  { timeout: 5000 }
108
109
  )
109
110
  } catch (err) {