Repository navigation
feat: Start without AI configured, and enable it for plural up - #4731
Conversation
[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
SummaryAllows Nexus to start while Console AI is disabled and enables Nexus in generated installation values.
Reviews (1) · Last reviewed commit: "start without AI configured, and enable ..." · Reviewed by Greptile |
| h, err := NewHandler(&mockConsoleClient{cfg: &pb.AiConfig{Enabled: false}}) | ||
| require.NoError(t, err) | ||
| require.NotNil(t, h) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
this will still live reload new provider definitions when they're defined after right?
…-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.
templates/values.yaml.liquidenablesaiProxy, which devboxes and the defaultcodexagent 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.