diff --git a/packages/core/tools/src/ptc.ts b/packages/core/tools/src/ptc.ts index 4cda30271e..97736b8c33 100644 --- a/packages/core/tools/src/ptc.ts +++ b/packages/core/tools/src/ptc.ts @@ -108,11 +108,11 @@ function controlParameters(runtime: CodeRuntime | undefined) { // Catalog readers have no mounted runtime; real model assembly requires one. if (runtime === undefined) return RUN_CODE_CONTROLS return { - ...runtime?.timeout === undefined ? {} : { + ...runtime.timeout === undefined ? {} : { timeoutMs: { ...RUN_CODE_CONTROLS.timeoutMs, description: `Positive elapsed-time budget in milliseconds, including nested tool and approval waits. Default ${runtime.timeout.defaultMs}; capped at ${runtime.timeout.maxMs}. Zero does not disable the deadline.` }, }, - ...runtime?.sandboxMode === undefined ? {} : { + ...runtime.sandboxMode === undefined ? {} : { sandbox_permissions: RUN_CODE_CONTROLS.sandbox_permissions, justification: RUN_CODE_CONTROLS.justification, }, diff --git a/tsconfig.host.json b/tsconfig.host.json index 3b9ae59d66..5d3173d237 100644 --- a/tsconfig.host.json +++ b/tsconfig.host.json @@ -54,6 +54,7 @@ "apps/web/tests/rail-search-expand.e2e.ts", "apps/web/tests/conversation-column-overflow.e2e.ts", "apps/web/tests/ptc-round.e2e.ts", + "apps/web/tests/ptc-escalation.e2e.ts", "apps/web/tests/present.e2e.ts", "apps/web/tests/present-svg.e2e.ts", "apps/web/tests/composer-draft-scroll.e2e.ts",