feat(code): cli sandboxes, enterprise timeouts, secrets projections, resolver lift, workflow exec cancellations - #6247
feat(code): cli sandboxes, enterprise timeouts, secrets projections, resolver lift, workflow exec cancellations#6247icecrasher321 wants to merge 26 commits into
Conversation
…lver # Conflicts: # apps/sim/components/settings/navigation.test.ts # apps/sim/components/settings/navigation.ts # apps/sim/providers/index.test.ts
|
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
|---|---|---|---|---|---|
| 35640005 | Triggered | Generic Password | 1a7c79b | apps/desktop/src/main/browser-import/import-service.test.ts | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryHigh Risk Overview Function execution gains Shell as a remote language, Python as real modules ( A central code compiler/resolver now binds Async workflow policy: Enterprise can configure longer runs (up to 7 days); direct async API/SDK callers may send Stale execution cleanup is reworked for scale: deadline-aware workflow failure, bounded batched mutations with Reviewed by Cursor Bugbot for commit 5cbafee. Configure here. |
Greptile SummaryThis PR centralizes execution-time placeholder and secret handling while expanding sandbox, timeout, and cancellation capabilities.
Confidence Score: 5/5The PR appears safe to merge within the scope of this follow-up review. No blocking failure remains in the eligible follow-up review scope.
|
| Filename | Overview |
|---|---|
| apps/sim/executor/variables/resolver.ts | Centralizes code-context resolution while preserving environment placeholders for execution-boundary compilation. |
| apps/sim/lib/execution/code-placeholders/index.ts | Introduces the shared JavaScript, Python, and Shell placeholder-compilation boundary. |
| apps/sim/lib/execution/remote-sandbox/cli-tools.server.ts | Defines pinned, checksum-verified server-side installation recipes for managed sandbox CLIs. |
| apps/sim/lib/billing/execution-timeout-defaults.ts | Resolves plan and Enterprise-specific execution timeout policies. |
| apps/sim/app/api/workflows/[id]/executions/[executionId]/cancel/route.ts | Coordinates durable cancellation state, backend job cancellation, local aborts, resumed executions, and terminal event publication. |
| apps/sim/lib/core/async-jobs/backends/trigger-dev.ts | Adds execution-scoped Trigger.dev cancellation using tags and payload verification. |
| packages/db/schema.ts | Adds persisted metadata supporting configurable Enterprise execution limits and related sandbox behavior. |
Sequence Diagram
sequenceDiagram
participant Client
participant API as Execution API
participant Policy as Timeout Policy
participant Queue as Async Backend
participant Executor
participant Sandbox
participant Projection as Secret Projection
Client->>API: Start workflow
API->>Policy: Resolve account and request timeout
Policy-->>API: Effective deadline
API->>Queue: Enqueue execution with deadline
Queue->>Executor: Run workflow
Executor->>Sandbox: Execute Function or Shell with managed CLIs
Sandbox-->>Executor: Block output
Executor->>Projection: Sanitize traces and model-visible output
Projection-->>Client: Stream projected result
Client->>API: Cancel execution
API->>Queue: Cancel queued or running job
API->>Executor: Signal local or resumed execution
Reviews (14): Last reviewed commit: "run from block ui disabling" | Re-trigger Greptile
|
@cursor review |
|
@cursor review |
|
@cursor review |
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 9f0d229. Configure here.
…lver # Conflicts: # apps/sim/lib/copilot/vfs/workspace-vfs.ts # apps/sim/lib/core/config/env-flags.ts # apps/sim/lib/execution/remote-sandbox/pi-lifetime.test.ts # apps/sim/lib/execution/remote-sandbox/pi-lifetime.ts # apps/sim/lib/execution/remote-sandbox/provider.ts # scripts/setup/checks.ts
|
bugbot run |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 5cbafee. Configure here.
…lver # Conflicts: # apps/sim/lib/content/mdx.tsx
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit d417123. Configure here.
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 8558c19. Configure here.
Summary
Type of Change
Testing
Tested manually
Checklist