Skip to content

refactor: remove the hidden custom proxy-URL step - #163

Merged
quickbeard merged 2 commits into
mainfrom
refactor/remove-custom-proxy-url-step
Jun 12, 2026
Merged

refactor: remove the hidden custom proxy-URL step#163
quickbeard merged 2 commits into
mainfrom
refactor/remove-custom-proxy-url-step

Conversation

@quickbeard

Copy link
Copy Markdown
Owner

Summary

The "Choose proxy URL" step in codev install / codev config was fully wired up but permanently disabled via the SHOW_PROXY_URL_STEP = false flag — it never rendered and never persisted anything. This removes it end to end: the TUI, the SetupApp orchestration, and the persistence/consumption plumbing that existed only to serve it.

Changes

Deleted

  • src/components/ProxyUrl.tsx + tests/components/ProxyUrl.test.tsx

src/SetupApp.tsx

  • Removed the "proxy-url" phase, SHOW_PROXY_URL_STEP, the POST_INSTALL gate array, proxyChoice/pendingSurvivors state, handleProxyUrlConfirm, the auto-advance useEffect, and the ProxyUrl <Step>.
  • handleLoginDone / handleInstallDone now call runPostInstallSideEffects directly with the survivor set instead of parking it and routing through the picker.

src/lib/auth.ts

  • Removed saveProxyUrl, the proxy_url field, and its preservation in logout.

src/lib/const.ts

  • PROXY_URL() now simply returns BACKEND_URL (override branch + proxy_url field gone).

Tests & docs

  • Pruned the saveProxyUrl / PROXY_URL-override cases, the advanceThroughProxyUrl seam and its call sites, and the hidden-step test.
  • Fixed a stale ConfigApp.test.tsx comment and the AGENTS.md flow reference.

Net: 32 insertions(+), 760 deletions(-).

Validation

  • pnpm fix — clean
  • pnpm typecheck — clean
  • pnpm test — 722 passed / 50 files
  • pnpm build && node dist/index.js --version0.3.7

🤖 Generated with Claude Code

quickbeard and others added 2 commits June 12, 2026 15:47
The "Choose proxy URL" step was wired up but permanently disabled
(SHOW_PROXY_URL_STEP=false), so it never rendered and never persisted
anything. Remove it end to end — TUI, SetupApp wiring, and the
persistence/consumption plumbing that only it used.

- Delete the ProxyUrl component and its test.
- SetupApp: drop the proxy-url phase, SHOW_PROXY_URL_STEP, POST_INSTALL,
  proxyChoice/pendingSurvivors state, handleProxyUrlConfirm, the
  auto-advance effect, and the ProxyUrl render. handleLoginDone /
  handleInstallDone now call runPostInstallSideEffects directly.
- auth.ts: remove saveProxyUrl, the proxy_url field, and its logout
  preservation.
- const.ts: PROXY_URL() now just returns BACKEND_URL (override branch and
  the proxy_url field gone).
- Tests: prune the saveProxyUrl / PROXY_URL-override cases, the
  advanceThroughProxyUrl seam, and the hidden-step test; fix a stale
  ConfigApp comment and the AGENTS.md flow reference.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
With the override gone, PROXY_URL() was just a wrapper returning the
BACKEND_URL constant. Remove the indirection: inline BACKEND_URL at the
three proxy.ts call sites (auth/exchange, config, supabase/exchange) and
drop the function. Update const.test.ts (remove the now-defunct PROXY_URL
describe) and proxy.test.ts (build expected URLs from BACKEND_URL).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@quickbeard
quickbeard merged commit 31e1d76 into main Jun 12, 2026
4 checks passed
@quickbeard
quickbeard deleted the refactor/remove-custom-proxy-url-step branch June 12, 2026 08:58
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