Skip to content

feat(models): add Auto to one shared model picker - #5196

Merged
reachjalil merged 157 commits into
devfrom
feature/auto-model-experience
Sep 30, 2026
Merged

reachjalil merged 157 commits into
devfrom
feature/auto-model-experience

Conversation

@reachjalil

@reachjalil reachjalil commented Sep 21, 2026 •

Copy link
Copy Markdown
Member

What is this about?

One picker for Auto and connected models, with a controlled free Auto rollout.

What problem does it solve?

People keep drafts when choosing models. Platform admins can verify Auto with selected organizations before general availability.

What was the situation before?

Model lists drifted between surfaces. Disabled Auto could remain visible, existing keys could outlive policy changes, and organizations had no separate pilot enrollment.

How is this implemented?

  • Share filtering, pins, selection, and workspace-scoped status; hide disabled Auto in new tasks.
  • Add /admin enrollment, default off, with audited platform-only writes. Den and Gateway check existing keys against current enrollment and effective desktop policy.
  • INFERENCE_FREE_ROLLOUT_ALL_ORGS changes the enrollment default while preserving explicit overrides and the global kill switch.
  • Retry original idempotent charges through database failures and disconnects; preserve normal OpenAI inputs and the paid body limit.

What else changed?

Regenerate the API contract and document pilot deployment settings. Tests cover MySQL faults, policy changes, rollout isolation, and failed saves.

Release note

Choose connected models from one picker; platform admins can enable free Auto for selected organizations.

Evidence

evals/specs/free-auto-rollout.e2e.test.ts — before: pilot member has no Auto; after: admin enables only that org, then revokes access.

evals/specs/desktop-auto-disabled.e2e.test.ts — before: saved Auto with access off; after: BYOK works and the draft remains.

Design: P1, P5, P10, S2, S6, C5, C6

@reachjalil
reachjalil added this pull request to stack #5197 September 21, 2026 18:48
@github-actions

github-actions Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Selected evidence: Failed · 5/11 tests · 5/5 assertions · 31 images

Commit a4b2e6c2ff921bbc655057847274788fb4bf54ce · selected evidence
Required verification is reported separately by the current-head Required verification check.

Open review report

15 visual judgment(s) pending.

… to organizations

Free Auto credentials and identities now use a domain-separated HMAC digest
shared by Den and the Gateway instead of a bare SHA-256, matching the Gateway
bearer-key store. Free reservations record the verified organization so admin
allowance summaries read from the key link, never from the client. Migration
0109 adds the reservation organization column and the device-key share
receipt table.
…haring

Den exposes the organization free-provider summary to admins, lets admins pin
or unpin Auto for members without touching access or personal pins, and
accepts a device API key from a freshly verified owner or admin: eligibility is
secret-free, the transfer is one transaction with a durable receipt scoped to
organization, member and request id, retries return the same receipt, and
changed contents conflict. Covered against a real MySQL.
… keys under policy

The desktop server forwards Den's defaultPinned decision with the free status,
so an admin unpin reaches native pickers. Device-key sharing reads the secret
only after eligibility is verified, journals the request id before the
transfer, removes the local key only after a verified receipt, and is governed
by the same desktop model policy as saving a key.
…the design

Auto leads the pinned list with the OpenWork mark, rows show provider mark,
subtitle, source glyph and check, and the footer offers Connect more providers
and All models. Loading, no-results, no-connected-models, saved-unavailable,
policy-blocked, failed and stale catalogs, exhausted allowance, update required,
temporary unavailability and sync pending each have their own state; the All
models dialog now receives catalog state and retry from every owner. The
Settings palette shares the Models mode with real options, workspace defaults
keep their effort variant, and the in-chat limit notice keeps the unprocessed
message dimmed with Sign in to OpenWork and Switch model.
… key with Den

AI providers separates keys on this device from providers the organization
manages in Den, shows OpenWork Models as included with an on/off control, and
reports when Den last synced. Sharing a device key opens a consent dialog that
names what moves to Den, what leaves the device, who is billed and who can
access it; supported API keys share through the verified server path while
custom and sign-in credentials stay private.
…ry states

Worlds choose their engine explicitly so CI's default no longer runs a v2
journey on v1, sessionless specs no longer skip on ambient env, and evidence
records the fixture's engine. The picker journey now covers empty search and
Clear search, collapsed Advanced options, the pinned-row context menu, the
immutable organization pin, and switching from a pinned row, using the current
labels and chords. The outbound manifest lists the inference host.
…ee credentials through WebCrypto

The free provider summary schema no longer carries a cross-version zod
annotation that the Electron typecheck rejects, the managed-models policy
narrows on an explicit discriminant, free credential lookups derive their tag
through WebCrypto HMAC like the Gateway bearer-key store, and the provider sync
store omits empty last-run facts instead of recording null.
@vercel
vercel Bot temporarily deployed to Preview – openwork-landing September 21, 2026 22:33 Inactive
@vercel

vercel Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

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

4 Skipped Deployments
Project Deployment Actions Updated
openwork-app Skipped Skipped Sep 30, 2026 8:36pm UTC
openwork-den Skipped Skipped Sep 30, 2026 8:36pm UTC
openwork-diagnostics Skipped Skipped Sep 30, 2026 8:36pm UTC
openwork-landing Skipped Skipped Sep 30, 2026 8:36pm UTC

The packaged desktop server imports @openwork/types/desktop-free-access at
runtime; the export now resolves to the built file instead of TypeScript
source, which Node refuses to strip under node_modules.
The Models command shows the current model's public name as its value, or
nothing when the selected model only has a gateway id; the palette proof now
matches the root placeholder and allows that public value.
…-use surface

The activated enterprise launch expects the current hero heading, the local
first run proves the starter model through the composer instead of removed
status copy, and packaged launches skip loudly when no packaged binary is
available instead of failing the change-proof lane.
…ree Auto

With OPENWORK_DEV_MODE=1, an explicit loopback OPENWORK_DEV_FREE_CONTROL_PLANE
counts as the hosted control plane so a local Den and Gateway can exercise
Auto end to end. Packaged builds never set it; every other origin, flavor and
policy check is unchanged.
…ol plane

A local Den serves its web control plane and API on different loopback
ports, so the developer-only allowance accepts any loopback API origin once
the named control plane matches.
@vercel
vercel Bot temporarily deployed to Preview – openwork-landing September 21, 2026 23:23 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-app September 21, 2026 23:23 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-den September 21, 2026 23:23 Inactive
benjaminshafii
benjaminshafii previously approved these changes Sep 30, 2026
@mintlify

mintlify Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
differentai 🟢 Ready View Preview Sep 30, 2026, 8:36 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

…erience

# Conflicts:
#	apps/server/src/anonymous-inference.test.ts
#	apps/server/src/free-auto/index.ts
#	apps/server/src/free-auto/responses.ts
#	apps/server/src/free-auto/service.ts

This branch was successfully deployed

1 active and 5 inactive (1 outdated) deployments
staging - packages/docs — e1fb1420 Deployed Sep 30, 2026 by mintlify[bot]
Preview – openwork-app — e1fb1420 Deployed Sep 30, 2026 by vercel[bot]
Preview – openwork-diagnostics — e1fb1420 Deployed Sep 30, 2026 by vercel[bot]
Preview – openwork-landing — e1fb1420 Deployed Sep 30, 2026 by vercel[bot]
Preview – openwork-den — e1fb1420 Deployed Sep 30, 2026 by vercel[bot]
Evidence / PR 5196 — 7a94d359 Deployed Sep 30, 2026 by github-actions[bot]
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.

3 participants