Skip to content

test(ipc): add push_message handler tests and daemon_sock_path assertion (lr-f0ca)#204

Closed
akuehner wants to merge 1 commit into
mainfrom
fix/lr-f0ca-peaches-nits
Closed

test(ipc): add push_message handler tests and daemon_sock_path assertion (lr-f0ca)#204
akuehner wants to merge 1 commit into
mainfrom
fix/lr-f0ca-peaches-nits

Conversation

@akuehner

Copy link
Copy Markdown
Member

Summary

  • Extends relay-agent-claims.test.js fake server to capture the register request body and assert daemon_sock_path is present and non-empty (Peaches nit 2: a refactor could silently drop the field with tests still green)
  • Adds test/ipc-push-message.test.js with 7 tests covering the full push_message handler contract: missing sessionId, missing text, session not found, session found (verifies pushMessage called with correct args), and handler-throws path (Peaches nit 1: no automated test for the IPC case)

Test plan

  • npm test passes (177/177 — up from 168)
  • New tests cover all push_message error paths and the happy path
  • daemon_sock_path assertion catches any future accidental removal of the field

Closes Peaches nits on lr-f0ca (push_message IPC + daemon_sock_path relay claim).

🤖 Generated with Claude Code

…ion (lr-f0ca)

Add ipc-push-message.test.js covering the five handler contract cases
(missing sessionId, missing text, session not found, session found, handler
throws) using createIPCServer + sendIPCCommand over real Unix sockets in
os.tmpdir(). Update relay-agent-claims.test.js fake server to capture request
bodies and assert that the register body includes a non-empty daemon_sock_path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@akuehner akuehner closed this Jun 10, 2026
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