refactor(coding-agent/eval): drop python warmup path
The warmup path no longer produces prelude docs, so the cached-session warmup it implemented added no value over the create-on-first-execute path that withKernelSession already covers. Remove warmPythonEnvironment, the backend warm() hook, the eval-tool warmup loop, the createTools warmup preflight, and the forcePythonWarmup option. Simplify ExecutorBackendCallOptions into ExecutorBackendExecOptions since execute is now the only consumer.
This commit is contained in:
@@ -391,7 +391,7 @@ A `ToolFactory` is `(session: ToolSession) => Tool | null | Promise<Tool | null>
|
||||
|
||||
1. Normalizes requested tool names (`toolNames`) and always injects `exit_plan_mode`.
|
||||
2. Resolves eval backend allowance via `PI_PY` override (`getEvalBackendsFromEnv()`) or `eval.py` / `eval.js` settings.
|
||||
3. Performs Python kernel preflight/warmup when applicable (`checkPythonKernelAvailability`, `warmPythonEnvironment`).
|
||||
3. Performs Python kernel preflight when applicable (`checkPythonKernelAvailability`).
|
||||
4. Computes effective gating (`isToolAllowed`) from settings and runtime state:
|
||||
- feature toggles (`find.enabled`, `grep.enabled`, etc.)
|
||||
- recursion guard for `task` (`task.maxRecursionDepth` vs `session.taskDepth`)
|
||||
@@ -777,7 +777,7 @@ This subsystem is split into two layers:
|
||||
- Entry points:
|
||||
- `executePython(code, options)`
|
||||
- `executePythonWithKernel(kernel, code, options)`
|
||||
- warmup/session utilities (`warmPythonEnvironment`, `disposeAllKernelSessions`).
|
||||
- session utilities (`disposeAllKernelSessions`, `disposeKernelSessionsByOwner`).
|
||||
- Manages kernel session lifecycle in `kernelSessions: Map<string, KernelSession>` with:
|
||||
- bounded session count (`MAX_KERNEL_SESSIONS`), LRU eviction (`evictOldestSession`)
|
||||
- idle cleanup timer (`cleanupIdleSessions`)
|
||||
|
||||
Reference in New Issue
Block a user