[GH-ISSUE #77] CLI analyze command calls unsupported Hopper bridge method (binary_overview) #61

Closed
opened 2026-10-15 18:20:40 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @morluto on GitHub (Jul 12, 2026).
Original GitHub issue: https://github.com/morluto/rea/issues/77

Summary

node scripts/rea.mjs analyze <path> fails at runtime with HopperRemoteError: Hopper request failed (-32000): Unknown bridge method.

Repro

  1. Ensure Hopper is available.
  2. Run:
    • node scripts/rea.mjs analyze --format md /usr/bin/true
  3. Observe output:
    • error: HopperRemoteError
    • message: Hopper request failed (-32000): Unknown bridge method

Root cause

CLI runDirectAnalysis was directly calling session.execute("binary_overview", ...) against the raw Hopper client.
binary_overview is an enhanced workflow (composed in EnhancedTools) and is not implemented as a direct bridge method in bridge/hopper_bridge.py.

Fix

Update src/application/DirectAnalysis.ts so binary_overview is routed through EnhancedTools while procedure_pseudo_code continues as direct bridge call.

Originally created by @morluto on GitHub (Jul 12, 2026). Original GitHub issue: https://github.com/morluto/rea/issues/77 ## Summary `node scripts/rea.mjs analyze <path>` fails at runtime with `HopperRemoteError: Hopper request failed (-32000): Unknown bridge method`. ## Repro 1. Ensure Hopper is available. 2. Run: - `node scripts/rea.mjs analyze --format md /usr/bin/true` 3. Observe output: - `error: HopperRemoteError` - `message: Hopper request failed (-32000): Unknown bridge method` ## Root cause CLI `runDirectAnalysis` was directly calling `session.execute("binary_overview", ...)` against the raw Hopper client. `binary_overview` is an enhanced workflow (composed in `EnhancedTools`) and is not implemented as a direct bridge method in `bridge/hopper_bridge.py`. ## Fix Update `src/application/DirectAnalysis.ts` so `binary_overview` is routed through `EnhancedTools` while `procedure_pseudo_code` continues as direct bridge call.
bsakaguchi 2026-10-15 18:20:40 +00:00
Author
Owner

@morluto commented on GitHub (Jul 13, 2026):

Resolved in the current application routing: binary_overview executes through EnhancedTools, while direct bridge operations remain on the provider session. A live HOPPER_LAUNCHER_PATH=/opt/hopper/bin/Hopper node scripts/rea.mjs analyze --format md /bin/true run returned a valid binary_overview Evidence record; no Unknown bridge method error occurred. Full checks and packaged CLI verification also passed.

<!-- gh-comment-id:4963114048 --> @morluto commented on GitHub (Jul 13, 2026): Resolved in the current application routing: `binary_overview` executes through `EnhancedTools`, while direct bridge operations remain on the provider session. A live `HOPPER_LAUNCHER_PATH=/opt/hopper/bin/Hopper node scripts/rea.mjs analyze --format md /bin/true` run returned a valid `binary_overview` Evidence record; no `Unknown bridge method` error occurred. Full checks and packaged CLI verification also passed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
morluto/rea#61
No description provided.