Repository navigation
fix(ghidra): explain server restart for timeout recovery - #5356
Conversation
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. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
812f967 to
0c84279
Compare
[Medium impact] The PR appears safe to merge; the recovery advice matches the existing configuration and timeout paths. SummaryClarifies that raising Ghidra’s startup deadline requires changing REA’s launch environment and restarting the server.
No actionable issues found. Whitespace checks passed; tests were not run during this review. The supersession check could not be completed because GitHub access required authentication. Reviews (1) · Last reviewed commit: "fix(ghidra): explain server restart for ..." · Reviewed by Greptile |
Adapt upstream morluto#5356, morluto#4650 and morluto#5662 to the Windows fork. Preserve listing facts and live retry policy, carry explicit settings into client setup, and qualify natural timeouts with a source-owned Windows DLL. Windows acceptance, default real-provider checks and SDK schema regressions passed; details in the verification record.
Summary
A Ghidra startup timeout told analysts to change the environment and reopen the target. REA snapshots configuration when the server starts, so close/reopen on the existing server still uses the old deadline and repeats the cold import. This can make the configurable 330-second default look like a fixed technical limit.
The shared CLI/MCP error now explains Evidence export, cleanup, changing the server launch environment, restarting REA, reconnecting MCP, and allowing enough client request time. The bundled skill (version 43) and owning guides give the same recovery flow and a concrete CLI retry. Analyzer exclusions explicitly reduce coverage. Engine defaults and analysis contracts are unchanged.
Related to #3509; this addresses timeout recovery guidance, not the separate transport-loss report or pending progress/cache designs.
Validation
58d604330.npm run check,npm run docs:check(including 5 consistency tests),npm run verify:package, andnpm pack --dry-runpassed. Package verification covered installed CLI/MCP, Evidence, skill installation/update, setup/uninstall, and cleanup. Package/boundary checks preceded the final one-commit main rebase; full static/docs checks and the real MCP proof were repeated afterwards.input * 7 + 3function, reuses a warm overview, exports its digest-linked Evidence, and removes all owned temporary roots/processes. Whole harness: 132.80 s elapsed, 65.59 s CPU, 1036.0 MiB cgroup peak.Real Ghidra 12.1.4 / Temurin 21.0.12.1, Linux x86-64; static analysis of the public gsudo 2.5.1 x64 EXE (5,915,592 bytes; SHA-256
47d02ca82bc31ae9f4b6cc1e76dceffe610b9b664d3c18a17e0403463c48d749):| Fresh process, 1,800,000 ms, 75% CPU | 590.75 s | 404.45 s | 1226.6 MiB | Success beyond 330 s; same counts; cleanup verified |
The final-tree 75% run matched the previous success's normalized result, target digest, analysis profile, and coverage limitations exactly. The final commit amends committer identity to
gensokyo-dev; its tested source tree is unchanged.Fresh ephemeral sessions, default analyzers, 1536M configured Java heap, one CPU, 6 GiB family hard limit / 5 GiB early stop / no swap. Kernel cgroup v2 CPU and
memory.peakcounters include the harness and file cache, witnessed at payload exit with only the observer remaining. The first baseline overlapped a check on the same CPU, so these are recovery observations, not a speed comparison. The original reporter's EXE was not supplied; real Windows/macOS were not run. Defined-inventory and unknown PDB coverage remain in Evidence.Two local check attempts were stopped at the 5 GiB guard without OOM. Serialized checks with an 8 GiB hard / 7 GiB early limit passed; final check peak was 5105.1 MiB. All measured lanes reported zero OOM kills.
Context: the error guidance estimate increases from 98 to 141
cl100k_basetokens. The complete current MCP proof, including both connections, failed attempts and replies, estimates 76,850 serialized wire tokens; it uses known tools withouttools/list. Schema/prompt loading and actual model usage are unmeasured. No token reduction or analysis speedup is claimed.Greptile completed review of the final head with 5/5 confidence and no actionable findings. Codex automated review was unavailable because the repository review quota was exhausted.
Author readiness
Human owner: @gensokyo-dev
The human owner explicitly delegated filling readiness, opening ready for review, and merging in the task request. Diff review and validation were performed by the agent under that delegation; no separate human diff review is claimed.