Skip to content

Commit 39b8b1f

Browse files
davila7claude
andcommitted
Restrict E2B sandbox to agents only - improve modal specificity
Changes: - E2B Sandbox section now only appears for agent components - Commands, MCPs, settings, hooks, and templates no longer show E2B option - This aligns with the CLI implementation where --sandbox only works with --agent - Keeps modal clean and relevant for each component type Reasoning: E2B sandbox execution is specifically designed for agent workflows since agents provide the AI decision-making needed for complex cloud operations. Other component types (commands, settings, etc.) are configuration-based and don't require isolated execution environments. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 7855c47 commit 39b8b1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/js/modal-helpers.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ function createComponentModalHTML(component) {
113113
</div>
114114
</div>` : ''}
115115
116+
${component.type === 'agent' ? `
116117
<!-- Run in E2B Sandbox (Cloud Execution) -->
117118
<div class="e2b-sandbox-section">
118119
<h4>☁️ Run in E2B Sandbox (Cloud Execution) <span class="new-badge">NEW</span></h4>
@@ -152,7 +153,7 @@ function createComponentModalHTML(component) {
152153
</a>
153154
</div>
154155
</div>
155-
</div>
156+
</div>` : ''}
156157
</div>
157158
158159
<div class="component-content">

0 commit comments

Comments
 (0)