Skip to content

fix: pass terminal env to sandbox console#146

Merged
Ramon Nogueira (ramon-langchain) merged 2 commits into
mainfrom
ramonn/sandbox-console-terminal-env
Jun 1, 2026
Merged

fix: pass terminal env to sandbox console#146
Ramon Nogueira (ramon-langchain) merged 2 commits into
mainfrom
ramonn/sandbox-console-terminal-env

Conversation

@ramon-langchain
Copy link
Copy Markdown
Member

Summary

Fixes sandbox console sessions so terminal apps receive the caller's terminal/color environment by default.

The console command already starts a PTY, but it was not passing command environment through the SDK request. This forwards a narrow terminal-focused allowlist and adds repeatable --env overrides for user-selected variables.

Test Plan

  • go test ./internal/cmd -run 'TestSandbox(ConsoleEnvFrom|CustomOutputCommands)|TestSandboxExecCmd'

@ramon-langchain Ramon Nogueira (ramon-langchain) marked this pull request as ready for review June 1, 2026 21:55
Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

@ramon-langchain Ramon Nogueira (ramon-langchain) merged commit f82c018 into main Jun 1, 2026
10 of 11 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