Skip to content

[PAB-24] Add selectable backend environments#102

Merged
pablopunk merged 7 commits into
mainfrom
agent/coder/f695152b
Jul 12, 2026
Merged

[PAB-24] Add selectable backend environments#102
pablopunk merged 7 commits into
mainfrom
agent/coder/f695152b

Conversation

@pablopunk

@pablopunk pablopunk commented Jul 12, 2026

Copy link
Copy Markdown
Owner

This PR adds the ability to select and switch between different backend environments for the Nevermind service, allowing users to connect to either the production backend or a custom backend URL.

Key changes:

  1. Backend environment switching — A new "Nevermind: Switch Backend Environment" command is exposed in the account extension, letting users choose between Production or a custom HTTPS URL. The custom URL option prompts the user to enter a backend URL.

  2. Validation and security — When switching backends, the custom URL is validated for proper HTTPS format. Packaged builds are blocked from using localhost/loopback addresses. The selected backend must also pass a compatibility manifest check before the switch is accepted.

  3. Environment state persistence — The selected backend environment (type and base URL) is stored in user state and persisted across sessions. The auth file now also records which environment was used for sign-in.

  4. Seamless re-authentication — Switching backends automatically signs out of the current session, invalidates the old compatibility cache, signs into the new environment, warms the new compatibility cache, disposes existing AI sessions, and broadcasts the auth change to extensions.

  5. Compatibility cache invalidation — A new invalidateNevermindCompatibilityCache function allows targeted (by URL) or full cache clearing, ensuring stale manifests don't interfere with backend switches.

  6. Sign-in routing — All sign-in paths (extension login, host jobs, etc.) now route through a unified signInToSelectedNevermindEnvironment function that uses the currently selected backend environment rather than a hardcoded default.

Co-authored-by: multica-agent <github@multica.ai>
@vercel

vercel Bot commented Jul 12, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
nvm Ready Ready Preview, Comment Jul 12, 2026 3:12pm

@kody-ai

kody-ai Bot commented Jul 12, 2026

Copy link
Copy Markdown

Kody Review Complete

Great news! 🎉
No issues were found that match your current review configurations.

Keep up the excellent work! 🚀

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Validate Business Logic: Ask Kody to validate your code against business rules by adding a comment with the @kody -v business-logic command.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug
Performance
Security
Business Logic

Access your configuration settings here.

Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
@pablopunk
pablopunk merged commit 81e8295 into main Jul 12, 2026
8 checks passed
@pablopunk
pablopunk deleted the agent/coder/f695152b branch July 12, 2026 15:40
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