Bläddra i källkod

test(ptc): include program approval scenario in host type checking

Tianyi Cui 3 veckor sedan
förälder
incheckning
a29991144a
2 ändrade filer med 3 tillägg och 2 borttagningar
  1. 2 2
      packages/core/tools/src/ptc.ts
  2. 1 0
      tsconfig.host.json

+ 2 - 2
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,
     },

+ 1 - 0
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",