Repository navigation
fix(pcap): retain rejected relative Wireshark tool paths in diagnostics - #7577
harshitethic wants to merge 2 commits into
Conversation
[Low impact] The code appears safe to merge; the previous testing gap is fixed, and no new actionable issue was found. SummaryPreserves rejected Wireshark tool selections by passing existing diagnostics through
Reviews (2) · Last reviewed commit: "test(pcap): verify relative tool diagnos..." · Reviewed by Greptile |
|
TL;DR: I ran the new test file at draft head b013bd8 on Node 22.23.4, 24.22.1 and 26.12.1, and both tests passed on each. With I ran
Not run
Test setup
Commandsnpm ci --offline
npm run test:prepare
xvfb-run -a npm run test:focused -- tests/boundary/cli/pcapRelativeToolDiagnostic.test.ts🤖 Written and tested with Claude Code (Sonnet 5.5, verified by Opus 5.5), posted with my OK 🦊 |
) Fixes #7569 Supersedes #7577 Co-Authored-By: gensokyo-dev <[email protected]>
) Fixes #7569 Supersedes #7577 Co-Authored-By: gensokyo-dev <[email protected]>
) Fixes #7569 Supersedes #7577 Co-Authored-By: gensokyo-dev <[email protected]>
|
Thank you for this fix. It landed in #10499 with your authorship kept on the commit (adapted where noted in the PR), so I'm closing this PR as superseded. |
Summary
Fixes #7569. REA already kept
configuredinPcapConfigurationFailure.diagnostics, but the provider discarded it when translating toAnalysisCapabilityUnavailableError. Pass the producing diagnostics through that existing typed error channel. The absolute-path admission rule, error category, and recovery guidance remain unchanged.Tests and verification
Reproduced the missing original
rel/tsharkselection in CLI output before the fix.Added CLI boundary regressions for both
REA_TSHARK_COMMAND=rel/tsharkandREA_CAPINFOS_COMMAND=rel/capinfos.npx vitest run --project cli-boundary tests/boundary/cli/pcapRelativeToolDiagnostic.test.ts-> 2 passed after rebuild.npm run typecheck,git diff --check, repo commit-hookoxlint/oxfmt-> passed on pinned Node 24.22.1.No Wireshark executable launched in those pre-admission rejection tests.
Follow-up: built CLI and stdio MCP cases for both relative selections assert the structured
details.diagnostics.configuredvalue and parity; both passed on macOS.npm run check:fastandgit diff --checkalso passed. No real Wireshark tools or Windows hosts were used.Author readiness
Draft pending the required human ownership review; no automated attestation is implied.