mirror of
https://github.com/morluto/rea.git
synced 2026-11-17 04:04:25 +00:00
feat(errors): carry related parameters and operations and derive CLI flags and commands (#11777)
* feat(errors): carry related parameters and operations and derive CLI flags and commands * fix(cli,errors): preserve operation-selector flags in CLI hints and clarify snapshot load/save
This commit is contained in:
1 parent
ddd0d6d4a4
commit
d5a942177f
25 files changed
+679
-68
No files matched your search
@@ -239,6 +239,8 @@ it.each(["cancelled", "physical"] as const)(
|
||||
const error = primaryAnalysisError(result.error.error);
|
||||
const deadline = {
|
||||
_tag: "AnalysisTimeoutError",
|
||||
related: { parameters: ["source_paths"] },
|
||||
remediationAction: expect.not.stringContaining("--source-path"),
|
||||
limit: expect.objectContaining({
|
||||
setting: "javascript.analysis_timeout_ms",
|
||||
effective_value: 20,
|
||||
|
||||
@@ -1245,10 +1245,11 @@ export class JavaScriptAnalysisWorker {
|
||||
this.limits.timeoutMs,
|
||||
this.limits.timeoutSource,
|
||||
),
|
||||
related: { parameters: ["source_paths"] },
|
||||
...(withCapturedOutput ? { capturedOutput: this.#captured() } : {}),
|
||||
userMessage: `JavaScript source analysis reached its ${String(this.limits.timeoutMs)}ms per-source server/provider deadline (analysis_timeout_ms), not the MCP client deadline.`,
|
||||
remediationAction:
|
||||
"Reuse accessible partial_observation Evidence to avoid recomputation; reading it is not a prerequisite for a corrected retry. Increase analysis_timeout_ms on the next call. Alternatively, reduce semantic limits or select exact inventoried source_paths (CLI: --source-path on that command). Omit source_paths to analyze all sources; an empty array is invalid. detail: summary reduces response size, not analysis work. Allow execution, cleanup and delivery headroom in the MCP client tool deadline; increasing that client deadline alone does not change this server budget. Resolve any reported incomplete cleanup before retrying.",
|
||||
"Reuse accessible partial_observation Evidence to avoid recomputation; reading it is not a prerequisite for a corrected retry. Increase analysis_timeout_ms on the next call. Alternatively, reduce semantic limits or select exact inventoried source_paths. Omit source_paths to analyze all sources; an empty array is invalid. detail: summary reduces response size, not analysis work. Allow execution, cleanup and delivery headroom in the MCP client tool deadline; increasing that client deadline alone does not change this server budget. Resolve any reported incomplete cleanup before retrying.",
|
||||
});
|
||||
}
|
||||
#workerExitFailure(
|
||||
|
||||
Reference in new issue
Block a user