Skip to content

feat(relay): pass daemon_sock_path in live claim register (lr-f0ca)#198

Merged
akuehner merged 1 commit into
mainfrom
feat/lr-f0ca-daemon-sock-path
Jun 9, 2026
Merged

feat(relay): pass daemon_sock_path in live claim register (lr-f0ca)#198
akuehner merged 1 commit into
mainfrom
feat/lr-f0ca-daemon-sock-path

Conversation

@akuehner

@akuehner akuehner commented Jun 9, 2026

Copy link
Copy Markdown
Member

What changed

Added daemon_sock_path: config.socketPath() to the register request body inside registerClaim() in lib/relay-agent-claims.js. Also added the corresponding require('./config') to the top-level require block.

Why

The relay previously auto-detected ~/.clagentic/daemon.sock when storing a live claim. That hardcoded assumption breaks in two real cases:

  • Non-default CLAGENTIC_HOME installs where the socket lands at a different path.
  • Dev-mode, which uses daemon-dev.sock instead of daemon.sock.

Sending the path explicitly at claim-register time decouples the relay from Console's install layout. config.socketPath() already handles both cases correctly (respects CLAGENTIC_HOME, switches on dev mode).

Tests

168/168 pass (npm test).

Merge gate

NAOMI.

Adds daemon_sock_path to the register request body in registerClaim(),
sourced from config.socketPath(). The relay previously auto-detected
~/.clagentic/daemon.sock on the Console side; that assumption breaks
non-default CLAGENTIC_HOME installs and dev-mode (daemon-dev.sock).
Sending the path explicitly at claim-register time decouples the relay
from Console's install layout entirely.
@akuehner akuehner merged commit 897e09c into main Jun 9, 2026
1 check passed
@akuehner akuehner deleted the feat/lr-f0ca-daemon-sock-path branch June 9, 2026 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant