Skip to content

fix(cli): add loopback hosts to no_proxy at startup - #52951

Closed
Velmet44 wants to merge 1 commit into
anomalyco:devfrom
Velmet44:loopback-no-proxy
Closed

Velmet44 wants to merge 1 commit into
anomalyco:devfrom
Velmet44:loopback-no-proxy

Conversation

@Velmet44

@Velmet44 Velmet44 commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Issue for this PR

Fixes #51247

Type of change

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

What does this PR do?

With HTTPS_PROXY set and no NO_PROXY, localhost TUI-to-service API calls
go through the proxy and fail. Desktop already upserts loopback into
NO_PROXY at startup (packages/desktop/src/main/sidecar.ts); the CLI had
no equivalent. This ports that upsert to CLI startup so local calls stay
direct.

I reproduced this failure mode locally with a fake proxy, but
#51247 has no repro details (no OS, steps, or version beyond v2.0.12), so I
can't guarantee this is what the reporter hit. I have commented on the issue and am happy to narrow or extend the
fix if they share their setup.

How did you verify your code works?

I ran these locally:

  • bun test test/no-proxy.test.ts in packages/cli: 3 pass
  • bun run typecheck in packages/cli: clean

And also:

  • Local fake-proxy check: localhost fetch → proxied 502 before, direct 200 after

Screenshots / recordings

Not needed, this is not a UI change.

Checklist

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

@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

@thdxr

thdxr commented Oct 10, 2026

Copy link
Copy Markdown
Member

This branch has been upgraded to V2. We're no longer taking PRs for V1. If you think this is still relevant, please port it over and open it for V2.

— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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.

HTTPS_PROXY env not working in v2, but works in v1

2 participants