Skip to content

fix(discovery): report debugger start host restrictions - #7965

Merged
morluto merged 1 commit into
mainfrom
codex/debugger-host-7419
Oct 29, 2026
Merged

morluto merged 1 commit into
mainfrom
codex/debugger-host-7419

Conversation

@morluto

@morluto morluto commented Oct 29, 2026

Copy link
Copy Markdown
Owner

Problem and change

Fixes #7419. On unsupported hosts, debugger start operations were advertised as available even though their managers reject them. Discovery and the GDB and Rizin debugger start guards now use the same Linux host predicate. Status and close operations remain discoverable without a binary target.

Validation

  • 47 inventory tests and an in-process MCP regression passed on macOS with Node 24.22.1. The MCP test covers both start refusals and summary and complete discovery before and after calls; Linux and Windows use inventory controls.
  • npm run check:fast and git diff --check passed.
  • No real Linux debugger or Windows host was exercised.

Author readiness

Human owner: NOT_ENOUGH_INFO

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T01:13:19.712371Z ebe8c6d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5 Tier: apex

[Medium impact] The PR appears safe to merge; discovery now matches the existing debugger start restrictions.

Summary

Aligns debugger discovery with the existing Linux-only start guards through one shared predicate.

  • Debugger discovery marks GDB and Rizin starts unavailable off Linux.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  H["persistentDebuggerHostSupported(platform)"]
  H --> D["createServer: hostUnsupported.persistentDebugger"]
  D --> I["CapabilityInventory: debugger start availability"]
  H --> G["GdbSessionManager.start guard"]
  H --> R["RizinDebugSessionManager start guard"]
  I --> L["Linux: available"]
  I --> N["Other hosts: unsupported_host"]
Loading

Reviews (1) · Last reviewed commit: "fix(discovery): report debugger start ho..." · Reviewed by Greptile

@morluto
morluto merged commit 3536ea2 into main Oct 29, 2026
4 checks passed
@morluto
morluto deleted the codex/debugger-host-7419 branch October 29, 2026 01:20
@morluto morluto added area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior bug Something isn't working labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] binary_session reports debugger starts available on a host both reject

1 participant