Skip to content

Suppress Command Code background updater during detection and spawns#183

Merged
SDSLeon merged 1 commit into
masterfrom
lightcode/merry-newt-e7684aa5
Jun 15, 2026
Merged

Suppress Command Code background updater during detection and spawns#183
SDSLeon merged 1 commit into
masterfrom
lightcode/merry-newt-e7684aa5

Conversation

@SDSLeon

@SDSLeon SDSLeon commented Jun 15, 2026

Copy link
Copy Markdown
Owner
  • Bugfix: Stop Command Code from spawning detached self-update terminals on launch when Lightcode probes --version and related detection paths
  • Add shared probeEnv support to agent detection so version probes and capability/auth probes can forward provider-specific environment overrides
  • Set COMMANDCODE_SKIP_UPDATES=1 on Command Code version probes, PTY launches, terminal login, and one-shot utility runs while leaving explicit command-code update unchanged
  • Add regression tests covering probe env, spawn env, and terminal login auth configuration

…awns

- Add DetectionSpec.probeEnv and forward it through DetectProbeCtx
- Set COMMANDCODE_SKIP_UPDATES on version probes, PTY launch, one-shots, and login
@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
lightcode-landing Skipped Skipped Jun 15, 2026 7:33pm

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 52b1a9f419

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

// `runTerminalLogin` forwards `env` into the login command; suppress the
// CLI's background self-updater so `command-code login` doesn't spawn a
// detached `npm i` terminal alongside the login overlay.
env: COMMANDCODE_SKIP_UPDATES_ENV,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Keep Windows terminal login commands shell-safe

When Command Code advertises this terminal-auth env, the native Windows Login/Re-login flow forwards it to runAgentLoginCommand, which renders env vars as a POSIX prefix (KEY='value' command) before writing the script to the login overlay; native Windows shells are started as pwsh/PowerShell/cmd in threadSessionManager, so the command becomes COMMANDCODE_SKIP_UPDATES='1' command-code login and fails before command-code login runs. This only affects native Windows terminal login for Command Code; WSL/POSIX prefixes are valid.

Useful? React with 👍 / 👎.

@SDSLeon SDSLeon merged commit 2db753f into master Jun 15, 2026
6 checks passed
@SDSLeon SDSLeon deleted the lightcode/merry-newt-e7684aa5 branch June 15, 2026 19:41
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.

1 participant