Repository navigation
fix(ghidra): report progress while startup is pending - #1877
Merged
Merged
Conversation
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]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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]>
3 tasks done
4 of 19 tasks
2 tasks done
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.
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: trueandmaxTotalTimeout: 360000, a second unprofiled Windows run received 33 waiting notifications and remained connected until the unchanged provider startup deadline returnedprovider_timeoutafter 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