Repository navigation
Set up AI models in Settings and test a local model from Studio - #40
Merged
Merged
Conversation
added 30 commits
October 12, 2026 21:34
… the browser leaves
… Model field like its neighbors
…test got no response
…test section once
…its password if the receipt fails
…th AI setup and size its dropdowns like its buttons
added 8 commits
October 13, 2026 00:08
…test the dialog's Tab fallback and the checklist's test target
…the revision it saves, and report read failures as they are
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Studio gets one place to set up AI: Settings › AI models (
/settings/ai).connection.bindsee themread-only, people with neither see which role they need.
authorization, a model that answered a test in the last 24 hours, and Weave AI. One-click Publish and
Authorize for people allowed to run them, Test connection, copyable operator commands and Recheck.
Ask Weave AI panel, whose Set up Weave AI now opens this card.
connection, an AI task's connection step and Home's Connect a model. It offers plain HTTP only for endpoints a
platform operator approved, takes a secret handle (never a key) and shows the
weave platform secret set --handlecommand, lists the approved models the provider serves (size, tool support, context) with Refresh, and tests a
model through the AI gateway: running with Cancel, success, success without tool support, failure with details.
platform call when the browser leaves or the person cancels. Every other call keeps its 35-second limit.
weave platform up --usernamegives its account the local owner roles (developer, deployer, operator, viewer,task_participant, tenant_admin, lumi_manager, execution_manager, worker_operator, deployment_reader,
deployment_planner, deployment_approver, deployment_operator). New
weave platform user grant --username NAME --role ROLEadds roles to an account this platform created; it first checks that the sign-in still belongs to therecorded person, using a private 0600 record of local accounts.
Removed: the AI setup wizard's AI connection flow, the old AI connection form, and the Weave AI settings wizard in the
Ask Weave AI panel. No platform API, migration or role is added; the platform stays the authority for every
permission, origin and credential rule.
Decisions
qwen3:4bwhen it is approved and installed, otherwise thefirst approved, installed, tool-capable model. Test results are kept in memory for the Studio session only; the
readiness checklist is the durable record.
AI, Go to providers) and moves focus there.
connection, so the Weave AI card shows keyless connections (such as a local Ollama endpoint) disabled with that
reason, and on a local platform every readiness item except Weave AI turns ready.
user grantrefuses them and points to Settings ›People and access.
Verification
Mocked and offline (macOS)
make check: all 17 stages passed (6584 unit and contract tests, 208 agentic worker tests, 29 file worker tests,docs build, installed artifacts).
mkdocs build --strictand the docs checker are clean.tscand Prettier clean; vitest 1796 passed (129 files); production build 732.98 kB initial (about190 kB transfer).
23 skipped, 0 failed (30.7 min). The AI suites (ai-setup, weave-ai, ai-models-layout, settings-routes,
ai-task-profile) account for 61 of them. An earlier full run had one test race in
inspector-ux.spec.ts, fixed inthis PR.
touch. Linux font check in
mcr.microsoft.com/playwright:v1.55.1-noble: the AI scenes passed; the Weave AI sceneneeds the Python host, which that container does not have.
Real services (macOS host, Linux containers in Colima)
aiprofile, on a fresh local platform: bring-up passed, including the check that the accountweave platform up --usernamecreates gets the owner roles.weave platform ai enable --ollama container --model qwen3:4b: ready in about 3 minutes; its own test answered in8.5 s (CPU only).
ollama-localanswered in 10.1 s withqwen3:4b. After Recheck, every readiness item except Weave AI is ready. No console errors; no credential left after
removing the platform; the harness secret scan found no canary.
Not verified here
Known gaps
operator.
Follow-ups
weave platform ai disable --remove-model-datafailed at theapi-startstage after the live run (/health/readykept answering 503); the model data was still removed. Reproduce with the installation kept and read the API start
log. Not caused by this change.