Skip to content

fix: MCP env leak, electron-builder OPENCODE_CHANNEL default to prod#31894

Closed
LifetimeVip wants to merge 2 commits into
anomalyco:devfrom
LifetimeVip:fix/security-env
Closed

fix: MCP env leak, electron-builder OPENCODE_CHANNEL default to prod#31894
LifetimeVip wants to merge 2 commits into
anomalyco:devfrom
LifetimeVip:fix/security-env

Conversation

@LifetimeVip

@LifetimeVip LifetimeVip commented Jun 11, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #31777 #31778

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Fix MCP subprocess receiving full process.env (API key leakage) and electron-builder test leaving OPENCODE_CHANNEL env dirty.

How did you verify your code works?

Tested in custom fork, verified MCP env is filtered to safe vars only.

Screenshots / recordings

N/A - logic change, not UI

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Jun 11, 2026
@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Jun 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@LifetimeVip

Copy link
Copy Markdown
Author

@thdxr @jlongster @rekram1-node @simonklee @Hona these 8 PRs together fix 30 open issues (compaction context loss, Windows encoding, tool error handling, security, etc.). All are mergeable with no conflicts. Would appreciate a review when you have time.

@simonklee simonklee closed this Jun 11, 2026
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.

[BUG] electron-builder test leaves process.env.OPENCODE_CHANNEL dirty if import() throws

2 participants