Skip to content

fix(capture): match the dsh rh mcp row structurally - #234

Merged
philbert440 merged 1 commit into
release/0.8.19-rcfrom
fix/issue-229
Nov 25, 2026
Merged

philbert440 merged 1 commit into
release/0.8.19-rcfrom
fix/issue-229

Conversation

@philbert440

Copy link
Copy Markdown
Collaborator

Why

DSH recall treated any patch row whose command and args contained the words rh mcp as the RivetHub entry. A row such as bash -c "echo rh mcp" was reported as connected, and a disconnect could remove it. #222 fixed the same matcher for Hermes.

What

row_runs_rh now builds an McpServer from the row and calls runs_rh_mcp, the matcher Hermes uses. It accepts a direct rh mcp call or the exact generated bash wrapper. The old text-based runs_rh_mcp in entries.rs had 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 test dsh_row_that_only_mentions_rh_mcp_is_not_rivethub; existing dsh_connect_wires_capture_and_recall_for_every_profile covers the real generated entry.

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
philbert440 merged commit 5d06434 into release/0.8.19-rc Nov 25, 2026
8 checks passed
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