feat(lr-9cfc): wire UI-path agent sessions to relay live-claim registration#147
Merged
Merged
Conversation
…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
|
This issue has been resolved in version 1.2.0-beta.1 (beta). To update, run: |
|
This issue has been resolved in version 1.2.0 (stable). To update, run: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@/root/.lore/relay-body.json