fix(android): bound fragmented JADX MCP frame memory (#937)

* perf(android): avoid repeated MCP frame copies

* fix(android): bound fragmented MCP frame memory

* style(android): format JADX transport changes
This commit is contained in:
morluto
2026-10-07 19:51:08 +08:00
committed by GitHub
parent 810fe53e79
commit 9e39795895
4 changed files with 176 additions and 18 deletions
+4 -1
View File
@@ -99,6 +99,8 @@ export type ProviderProcessDiagnostic =
/** Options for process lifecycle diagnostics. */
export interface ProviderProcessSupervisorOptions {
/** Retain stdout for diagnostics; disable when it carries a parsed protocol. Defaults to true. */
readonly captureStdout?: boolean;
readonly onDiagnostic?: (event: ProviderProcessDiagnostic) => void;
}
@@ -235,7 +237,8 @@ export class ProviderProcessSupervisor {
options: ProviderProcessSupervisorOptions = {},
) {
this.#options = options;
this.#attach(launch.process.stdout, "stdout");
if (options.captureStdout !== false)
this.#attach(launch.process.stdout, "stdout");
this.#attach(launch.process.stderr, "stderr");
launch.process.once("exit", this.#onExit);
launch.process.once("close", this.#onClose);