Skip to content

refactor(ghidra): extract GhidraSessionErrorProjection from GhidraProviderClient - #13722

Merged
morluto merged 3 commits into
mainfrom
refactor/ghidra-session-error-projection
Nov 23, 2026
Merged

morluto merged 3 commits into
mainfrom
refactor/ghidra-session-error-projection

Conversation

@morluto

@morluto morluto commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Closes #13721

Summary

  • Extract ~795 lines of stateless session-error projection, JVM memory failure diagnostics, SIGKILL reporting, and startup/missing-program guidance helpers from src/ghidra/GhidraProviderClient.ts into src/ghidra/GhidraSessionErrorProjection.ts.
  • Re-export ghidraMissingProgramGuidance and ghidraStartupTimeoutGuidance from GhidraProviderClient.ts for full backwards compatibility.
  • Transfer the matching per-file architecture-guard baseline entries (net 0 change).

Validation

  • npm run test:local -- src/ghidra/GhidraProvider.behavior.test.ts (316/316 tests passed)
  • npm run check:fast (typecheck, lint, architecture guards passed)

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T23:28:30.316867Z 5ebdac7 New commits
ℹ️ 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 Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no blocking issues were found.

Summary

Extracts Ghidra error reporting into GhidraSessionErrorProjection.ts and moves the matching architecture baselines without increasing their counts.

  • Ghidra session errors come from a separate projection module.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  Client[GhidraProviderClient] -->|session failure and current settings| Projection[GhidraSessionErrorProjection]
  Projection --> TypedError[Caller-facing error]
  Projection --> Cleanup[Retained cleanup failure]
  Tests[Behavior tests] -->|guidance helpers| Projection
Loading

Reviews (3) · Last reviewed commit: "refactor(ghidra): remove guidance re-exp..." · Reviewed by Greptile

@morluto morluto added the provider: ghidra Analysis provider / engine: ghidra label Nov 22, 2026
@morluto
morluto enabled auto-merge (squash) November 22, 2026 23:51
@morluto
morluto merged commit 7af2896 into main Nov 23, 2026
42 checks passed
@morluto
morluto deleted the refactor/ghidra-session-error-projection branch November 23, 2026 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

provider: ghidra Analysis provider / engine: ghidra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(ghidra): extract GhidraSessionErrorProjection from GhidraProviderClient

1 participant