perf(hopper): stop repeating Hopper replies as raw_result (#1405)

HopperProvider passed the bridge reply as rawResult and, for every
operation except address_to_file_offset, the same object as the result.
Every Hopper Evidence record (decompilation, procedure and string
listings, xrefs, ...) therefore carried its complete result twice, and
an MCP response four times counting its text copy.

raw_result is now null unless REA transformed the reply, which only the
file-offset mapping does; that case keeps Hopper's original reply.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kaoru0822
2026-10-09 20:00:35 -07:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 7623e21ff0
commit 1f0f728c63
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -249,7 +249,8 @@ export class HopperProvider implements AnalysisProviderCandidate {
? {
ok: true,
value: createAnalysisExecution(mapped.value, executionProvider, {
rawResult: result.value,
// Only the file-offset mapping differs from Hopper's reply.
rawResult: mapped === result ? null : result.value,
...(profile === undefined ? {} : { analysisProfile: profile }),
limitations: [
...(preparedImage === undefined