Repository navigation
fix(capture): match the dsh rh mcp row structurally - #234
Merged
Merged
Conversation
philbert440
force-pushed
the
fix/issue-229
branch
from
November 25, 2026 15:30
d94fc7b to
19f7283
Compare
row_runs_rh treated any row whose command text contained rh mcp as the RivetHub entry. It now reuses McpServer::runs_rh_mcp, the matcher #222 added for Hermes.
philbert440
force-pushed
the
fix/issue-229
branch
from
November 25, 2026 16:48
bcd7e2a to
7db3683
Compare
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.
Why
DSH recall treated any patch row whose command and args contained the words
rh mcpas the RivetHub entry. A row such asbash -c "echo rh mcp"was reported as connected, and a disconnect could remove it. #222 fixed the same matcher for Hermes.What
row_runs_rhnow builds anMcpServerfrom the row and callsruns_rh_mcp, the matcher Hermes uses. It accepts a directrh mcpcall or the exact generated bash wrapper. The old text-basedruns_rh_mcpinentries.rshad no other caller and is deleted with its test. The entry DSH writes (<rh>with args[mcp]) still matches.Fixes #229
Proved with:
cargo xtask check(GATE OK);cargo nextest run -p capture -p cli(982 passed); new testdsh_row_that_only_mentions_rh_mcp_is_not_rivethub; existingdsh_connect_wires_capture_and_recall_for_every_profilecovers the real generated entry.