Skip to content

fix: Better-E2B-Sandbox create text message for Start Shell tool#2032

Merged
LogicOber merged 1 commit intolanggenius:mainfrom
LogicOber:bump/better-e2b-sandbox-0.0.2
Feb 7, 2026
Merged

fix: Better-E2B-Sandbox create text message for Start Shell tool#2032
LogicOber merged 1 commit intolanggenius:mainfrom
LogicOber:bump/better-e2b-sandbox-0.0.2

Conversation

@LogicOber
Copy link
Collaborator

@LogicOber LogicOber commented Feb 7, 2026

Plugin Submission Form

1. Metadata

  • Plugin Author: lysonober
  • Plugin Name: Better E2B Sandbox
  • Repository URL: https://github.com/LogicOber/dify-plugins/tree/bump/better-e2b-sandbox-0.0.2/LogicOber/better-e2b-sandbox

2. Submission Type

  • New plugin submission
  • Version update for existing plugin

3. Description

This PR improves the developer experience for PTY tools in Dify workflows.

Previously, Start Shell Session did not provide a reliable text output for session_pid, so users could not conveniently reference the PID in the Dify frontend using / variable insertion. As a result, users had to add an extra “Code/JSON extraction” step to parse the JSON output and extract session_pid before passing it to Send Shell Session Input / Kill Shell Session, which was cumbersome.

Now Start Shell Session outputs session_pid as a clear text value (and consistent JSON field), and downstream tools accept it directly, so the PID can be passed through the workflow without any extra parsing nodes.

Additionally,

  • Avoid Claude session “context pollution” in Heartbeat: Setup Sandbox Heartbeat now defaults resume_session=false so it runs in a fresh Claude Code session (claude -p) instead of attaching to the user’s latest conversation (claude --continue -p). This prevents heartbeat system prompts and logs from being mixed into the main chat history. Users can still set resume_session=true when they explicitly want to build the task from prior context.
  • Optional E2B API key exposure for self-managed lifecycle: Create Claude Code Sandbox adds an expose_e2b_api_key switch (default false) to optionally inject E2B_API_KEY into the sandbox. When enabled, Claude Code can use E2B_API_KEY + E2B_SANDBOX_ID to manage/extend sandbox lifecycle from inside the sandbox. Kept opt-in for security.
  • File attachment support in Send Sandbox Input: Send Sandbox Input now supports an attachment parameter (type: file) so users can send a prompt and a file in the same node. The tool writes the uploaded file to /home/user/uploads/ and appends the path hint to the prompt for Claude Code to read.

4. Checklist

  • I have read and followed the Publish to Dify Marketplace guidelines
  • I have read and comply with the Plugin Developer Agreement
  • I confirm my plugin works properly on both Dify Community Edition and Cloud Version
  • I confirm my plugin has been thoroughly tested for completeness and functionality
  • My plugin brings new value to Dify

5. Documentation Checklist

  • Step-by-step setup instructions
  • Detailed usage instructions
  • All required APIs and credentials are clearly listed
  • Connection requirements and configuration details
  • Link to the repository for the plugin source code

6. Privacy Protection Information

Data Collection

No new user personal data is collected in this update. This change only improves tool output formatting / parameter passing for workflows.

Privacy Policy

  • I confirm that I have prepared and included a privacy policy in the plugin package based on the Plugin Privacy Protection Guidelines

@LogicOber LogicOber force-pushed the bump/better-e2b-sandbox-0.0.2 branch from 7e4e86a to 8ad6234 Compare February 7, 2026 09:41
@LogicOber LogicOber force-pushed the bump/better-e2b-sandbox-0.0.2 branch from 8ad6234 to ac923ea Compare February 7, 2026 10:27
@LogicOber LogicOber merged commit af9e045 into langgenius:main Feb 7, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants