Skip to content

Verify daemon identity before session-cli restarts it#78

Open
benvinegar wants to merge 1 commit intomainfrom
fix/trusted-daemon-restart
Open

Verify daemon identity before session-cli restarts it#78
benvinegar wants to merge 1 commit intomainfrom
fix/trusted-daemon-restart

Conversation

@benvinegar
Copy link
Member

@benvinegar benvinegar commented Mar 23, 2026

Summary

  • persist a per-daemon identity record and expose an instance id in /health
  • only restart the daemon when the health payload matches a trusted Hunk-managed daemon record
  • keep compatibility with already-running legacy daemons by verifying the target pid still looks like a hunk ... mcp serve process on Linux

Testing

  • bun run typecheck
  • bun run lint
  • bun test test/daemon-record.test.ts test/mcp-server.test.ts test/session-commands.test.ts
  • bun test test/session-cli.test.ts -t "list/get/context expose live Hunk sessions through the daemon"
  • bun test test/mcp-e2e.test.ts -t "a live Hunk session auto-starts the daemon and renders CLI comments inline"

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