Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
merge(main): keep the shared startup timeout ceiling name
Resolve the provider startup timeout conflict by adopting
MAX_PROVIDER_STARTUP_TIMEOUT_MS from main and pointing JEB deadline
guidance at that ceiling. Keep the JEB catalog-deadline note in the
MCP contract docs.

Co-authored-by: morluto <morluto@users.noreply.github.com>
  • Loading branch information
cursoragent and morluto committed Oct 21, 2026
commit cb85d8a78fe96259b525e09a37394e68eb22c172
7 changes: 5 additions & 2 deletions src/config/providerStartupTimeout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ export const DEFAULT_HOPPER_STARTUP_TIMEOUT_MS = 120_000;
/** Fresh Swift SDK cache took ~88s on the supported Intel macOS VM. */
export const DEFAULT_SWIFTC_COMPILE_TIMEOUT_MS = 120_000;

/** Node schedules delays above this signed 32-bit boundary as a 1 ms timer. */
export const MAX_TIMER_DELAY_MS = 2_147_483_647;
/**
* Largest delay Node schedules exactly. Delays above this signed 32-bit
* boundary become a 1 ms timer, so startup and swiftc timeouts stop here.
*/
export const MAX_PROVIDER_STARTUP_TIMEOUT_MS = 2_147_483_647;

/** Parse the optional setting without reading the ambient process environment. */
export const providerStartupTimeoutSchema = z
Expand Down
4 changes: 2 additions & 2 deletions src/jeb/JebMcpDeadline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
AnalysisCancelledError,
AnalysisTimeoutError,
} from "../domain/analysisErrorCore.js";
import { MAX_TIMER_DELAY_MS } from "../config/providerStartupTimeout.js";
import { MAX_PROVIDER_STARTUP_TIMEOUT_MS } from "../config/providerStartupTimeout.js";
import { ProviderStartupDeadline } from "../process/ProviderDeadline.js";

/** Which JEB MCP phase consumed `REA_JEB_MCP_TIMEOUT_MS`. */
Expand All @@ -19,7 +19,7 @@ export const jebMcpTimeoutGuidance = (
timeoutMs: number,
): { readonly userMessage: string; readonly remediationAction: string } => ({
userMessage: `This request reached REA's configured JEB ${phase === "discovery" ? "catalog discovery" : phase} deadline of ${String(timeoutMs)} ms (deadlineExpired).`,
remediationAction: `Increase REA_JEB_MCP_TIMEOUT_MS in REA's launch environment to an integer from 1 to ${String(MAX_TIMER_DELAY_MS)} milliseconds (omitted means ${String(DEFAULT_REQUEST_TIMEOUT_MSEC)} ms) and restart and reconnect REA to apply it. The same setting raises catalog discovery and each tools/call. Allow execution, cleanup and delivery headroom in the outer MCP client deadline. Confirm outstanding work and cleanup before retrying.`,
remediationAction: `Increase REA_JEB_MCP_TIMEOUT_MS in REA's launch environment to an integer from 1 to ${String(MAX_PROVIDER_STARTUP_TIMEOUT_MS)} milliseconds (omitted means ${String(DEFAULT_REQUEST_TIMEOUT_MSEC)} ms) and restart and reconnect REA to apply it. The same setting raises catalog discovery and each tools/call. Allow execution, cleanup and delivery headroom in the outer MCP client deadline. Confirm outstanding work and cleanup before retrying.`,
});

/** SDK 2.3.1 preserves an SdkError abort reason by identity. */
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.