Skip to content

fix(ghidra): report progress while startup is pending - #1877

Merged
N0zoM1z0 merged 2 commits into
mainfrom
fix/ghidra-startup-wait-progress
Oct 11, 2026
Merged

N0zoM1z0 merged 2 commits into
mainfrom
fix/ghidra-startup-wait-progress

Conversation

@N0zoM1z0

@N0zoM1z0 N0zoM1z0 commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator

Ghidra startup now reports elapsed waiting every ten seconds through the caller's existing progress token. Previously the adapter dropped the progress reporter, leaving clients with only operation-start and completion markers. Waiting messages stop on cancellation or startup settlement and do not estimate import or analysis completion.

MCP progress now counts emitted status observations and omits total, so repeated waiting phases satisfy the protocol's requirement that each notification increase. The docs explain the pinned SDK's optional progress timeout reset and total request bound.

Validation: 78 focused provider/process/MCP/Electron tests and five derived-operation regressions, check:fast (including the pre-push gate), docs:check and npm pack. An actual installed Windows Node 24.18 / SDK 2.3.1 / Ghidra 12.1.4 / JDK 21 run received five waiting notifications, then the unchanged default 60-second request timed out. Ping and close recovered, input bytes stayed unchanged, and no owned runtime or observed process remained. The full 172-tool catalog digest matches the pinned baseline. With resetTimeoutOnProgress: true and maxTotalTimeout: 360000, a second unprofiled Windows run received 33 waiting notifications and remained connected until the unchanged provider startup deadline returned provider_timeout after 331 seconds. Ping, close and owned cleanup passed again. Native analysis still did not complete; this change reports waiting and supports the caller's chosen deadline policy, without claiming native speed or large-target memory improvements.

The follow-up commit updates the derived-operation test to the notification-count contract; production files are identical to the Windows-tested commit.

Refs #1065, #1048

Forward the caller progress reporter through the Ghidra adapter and report
ongoing startup waiting without inventing analysis completion percentages.
Stop waiting notifications on startup settlement or caller cancellation.
MCP progress counts emitted observations so waiting notifications strictly
increase without inventing an analysis total.

Refs #1065, #1048

Co-authored-by: Kaoru0822 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 11, 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-11T15:25:34.875753Z 4c6b63e 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.

Cover the MCP observation sequence and unknown total in derived operations.

Co-authored-by: Kaoru0822 <[email protected]>
@N0zoM1z0
N0zoM1z0 merged commit 29d2624 into main Oct 11, 2026
31 checks passed
@N0zoM1z0
N0zoM1z0 deleted the fix/ghidra-startup-wait-progress branch October 11, 2026 15:55
@github-actions github-actions Bot mentioned this pull request Oct 11, 2026
3 tasks done
@morluto morluto added bug Something isn't working area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Oct 14, 2026
@morluto morluto added the provider: ghidra Analysis provider / engine: ghidra label Nov 23, 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 provider: ghidra Analysis provider / engine: ghidra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants