fix: refresh stale MCP daemon for session CLI - #55
Merged
Conversation
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.
Summary
hunk sessionis talking to an older live Hunk MCP daemon missing newer toolsProblem
A real live Hunk session could stay connected to an older daemon that only exposed
list_sessions,get_session, andcomment. In that state:hunk session listworkedhunk session getworkedhunk session comment addworkedhunk session context,comment list, andcomment rmfailedThis happened because the CLI was talking to a stale daemon rather than the current checkout's newer MCP tool surface.
Fix
Validation
bun run typecheckbun test test/session-cli.test.ts test/cli.test.ts test/mcp-client.test.ts test/mcp-daemon.test.tssession contextworkssession comment listworkssession comment rmworks