Skip to content

feat(lr-9cfc): wire UI-path agent sessions to relay live-claim registration#147

Merged
akuehner merged 1 commit into
mainfrom
feat/lr-9cfc-ui-agent-claim-registration
May 19, 2026
Merged

feat(lr-9cfc): wire UI-path agent sessions to relay live-claim registration#147
akuehner merged 1 commit into
mainfrom
feat/lr-9cfc-ui-agent-claim-registration

Conversation

@akuehner
Copy link
Copy Markdown
Member

@/root/.lore/relay-body.json

…ration

When operator opens a named-agent session via the Agents sidebar,
register a live relay claim so inbound relay messages route to this
operator session instead of spawning a subprocess clone.

Changes:
- lib/relay-agent-claims.js (new): thin HTTP-over-UDS client for relay
  live-claim lifecycle (register/heartbeat/release). Reads open
  conversations from ~/.lore/conversation-sidecars/ without a relay
  round-trip. 30s heartbeat loop; 90s relay TTL. Fully optional —
  degrades silently when CLAGENTIC_RELAY_SOCKET / ~/.lore/relay.sock
  is absent. No new dependencies (Node built-ins only).
- lib/project-sessions.js: wire attachAgentSession on new_session with
  agentName; detachAgentSession on session deletion, bulk-delete, and
  agentName clear/change via set_session_agent.
- .crew/amos.yaml: authorize AMoS write scope for this repo.
- test/relay-agent-claims.test.js: unit tests for sidecar filtering,
  relay-absent no-op, and session lifecycle.

Constraint: relay is optional — clagentic-console ships to environments
without clagentic-relay. No hard dependency added; all relay paths are
guarded by isRelayReachable() which resolves false within 2s when absent.

Does NOT auto-claim pre-existing conversations (operator decides per
the lr-9cfc spec, matching the lr-ce19 claim-ownership redesign).
New conversations opened after session start are auto-claimed via
onNewConversation() — callers responsible for invoking on conv open.

lr-9cfc
@akuehner akuehner merged commit 7240ed2 into main May 19, 2026
1 check passed
@akuehner akuehner deleted the feat/lr-9cfc-ui-agent-claim-registration branch May 19, 2026 17:40
@clagentic-release-bot
Copy link
Copy Markdown

This issue has been resolved in version 1.2.0-beta.1 (beta).

To update, run:

npx @clagentic/console@1.2.0-beta.1

@clagentic-release-bot
Copy link
Copy Markdown

This issue has been resolved in version 1.2.0 (stable).

To update, run:

npx @clagentic/console@1.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant