Skip to content

feat: Start without AI configured, and enable it for plural up - #4731

Merged
michaeljguarino merged 1 commit into
masterfrom
marcin/nexus-ai-proxy-defaults
Nov 25, 2026
Merged

michaeljguarino merged 1 commit into
masterfrom
marcin/nexus-ai-proxy-defaults

Conversation

@maciaszczykm

@maciaszczykm maciaszczykm commented Nov 24, 2026 •

Copy link
Copy Markdown
Member
  • Nexus: no longer crashes when AI is disabled in Console. Bifrost reads the provider list once at startup and Nexus returned an error for it; it now returns an empty list. Providers are added lazily per request, so configuring AI later needs no restart, and requests made while AI is disabled still fail.
  • plural up: templates/values.yaml.liquid enables aiProxy, which devboxes and the default codex agent runtime (aiProxy: true) send model traffic through. Without it, agents in proxy billing get a 404, which Claude Code reports as "the selected model (default) may not exist".

Found while testing pluralsh/bootstrap#209 on a fresh plural up.

@maciaszczykm
maciaszczykm requested a review from a team as a code owner November 24, 2026 15:04
@maciaszczykm maciaszczykm added the enhancement New feature or request label Nov 24, 2026
@greptile-apps

greptile-apps Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The changes affect Nexus startup and proxy access in Console deployments using the generated values.

The PR appears safe to merge, with a non-blocking request to test enabling AI after disabled startup.

Findings

  1. P2 Enabling AI remains untested ▶

Summary

Allows Nexus to start while Console AI is disabled and enables Nexus in generated installation values.

  • Nexus starts even when Console AI has not been configured.
  • Generated Console values turn on the AI proxy.

Reviews (1) · Last reviewed commit: "start without AI configured, and enable ..." · Reviewed by Greptile

Comment on lines +16 to +18
h, err := NewHandler(&mockConsoleClient{cfg: &pb.AiConfig{Enabled: false}})
require.NoError(t, err)
require.NotNil(t, h)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Enabling AI remains untested

TestNewHandler_AIDisabled stops after creating the handler. It never checks whether that same handler can serve requests after AI is enabled. A regression in adding the first provider could therefore pass both new tests. Extend this test to enable a provider backed by a local test server and send a successful request without recreating the handler.

// crash Nexus until AI is configured. Requests made while AI is disabled still fail in GetKeysForProvider.
if !aiConfig.GetEnabled() {
return nil, fmt.Errorf("AI is disabled in Console")
return nil, nil

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this will still live reload new provider definitions when they're defined after right?

@michaeljguarino
michaeljguarino merged commit 533de89 into master Nov 25, 2026
31 of 32 checks passed
@michaeljguarino
michaeljguarino deleted the marcin/nexus-ai-proxy-defaults branch November 25, 2026 04:28
floreks added a commit that referenced this pull request Nov 26, 2026
…-devbox-instance-patching

Brings in More devbox improvements (#4724), private CA wiring (#4618), the KAS
gRPC fix (#4736), starting without AI (#4731) and compatibility matrix updates.

Conflict resolution:
- buildActorTemplate keeps the runtime sidecar, install ID and wait-and-exec,
  with master's guest config, repositories, devbox capabilities and JuiceFS home
  volume. The wakeup probe is the runtime's 330 s plus the golden boot timeout
  when there is golden boot work, capped at Substrate's hour.
- Revisions record the runtime and daemon version as well as master's home
  storage; the daemon runs the boot script on a cold boot as well as master's
  golden boot work.
- Suspends are always synchronous (master), which covers updates.
- Instances whose home is on JuiceFS are never moved between revisions: each
  revision has its own volume class, and Substrate refuses a template with other
  volumes. RebaseInstance refuses them and the onResume policy skips them.
- The CD workflow has master's devbox-juicefs job and the runtime jobs.
- Regenerated the deepcopy (master's lacked DevboxRepository), CRD, API docs
  and the docs route index.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants