Skip to content

fix(desktop): restore forced sign-in and version allowlist - #5362

Merged
benjaminshafii merged 3 commits into
devfrom
fix/desktop-forced-signin-version-allowlist
Sep 25, 2026
Merged

benjaminshafii merged 3 commits into
devfrom
fix/desktop-forced-signin-version-allowlist

Conversation

@benjaminshafii

@benjaminshafii benjaminshafii commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

What is this about?

Enterprise and cloud desktops require sign-in again, and the organization's allowed desktop versions apply to updates again.

What problem does it solve?

Since 0.18.49, an activated enterprise desktop lets people work locally without signing in to their organization, and admins can no longer block a bad desktop version. Both were switched off together with desktop feature policies.

What was the situation before?

An activated enterprise install opened straight to "What do you need done?" with an optional Sign in button. A version removed from the allowed list still installed on restart.

How is this implemented?

  • app-root.tsx uses bootstrap.requireSignin directly again. Enterprise and cloud builds always persist true; desktop-bootstrap.json can only raise it, so MDM deployments behave as documented.
  • desktopCapabilityConfig keeps allowedDesktopVersions (an org setting from PATCH /v1/org, not a desktop policy); desktopSigninRequired is removed.
  • The updater waits for the org desktop config before its first check (allowedVersionsKnown), and refreshFresh fetches (still projected, falling back to the last known config if Den is unreachable) so the install-time re-check sees a revoked version.
  • Feature-policy toggles and execution rules stay suspended behind DESKTOP_POLICY_ENFORCEMENT_ENABLED.

What else changed?

  • Enterprise deployment docs: allowed desktop versions (an org setting) are enforced; feature policies are temporarily not.
  • Renamed updatePolicyKnown → allowedVersionsKnown.

Release note

Enterprise and cloud desktops require organization sign-in again, and versions removed from an organization's allowed desktop versions are no longer installed.

Evidence

evals/specs/packaged-activated-launch.e2e.test.ts — before: an activated enterprise install shows the session composer; after: it shows the forced sign-in surface and never the session.
evals/specs/packaged-first-launch.e2e.test.ts — before: a fresh cloud install shows the task composer; after: it shows the sign-in surface.
evals/specs/background-desktop-update.e2e.test.ts — before: a revoked version stays installable; after: restart is blocked with "not eligible", and re-approval installs it.

#5131 suspended desktop feature-policy enforcement but also routed two
non-policy controls through the same switch:

- Required sign-in is a property of the enterprise and cloud builds
  (desktop-distribution.mjs); desktop-bootstrap.json can only raise it.
  The app shell ignored it on desktop, so activated enterprise installs
  opened local work without Den sign-in.
- allowedDesktopVersions is an organization setting (PATCH /v1/org), not a
  desktop policy. The runtime projection dropped it, so the updater and
  recovery picker stopped honouring the organization's version pin.

Restore both. Feature-policy toggles and execution rules stay suspended.
The updater again waits for the organization's desktop config before its
first check, and refreshFresh fetches instead of returning the cached
projection so the install-time re-check (#4761) sees a revoked version.

Specs: packaged-activated-launch expects the forced sign-in surface again;
background-desktop-update proves a revoked version is not installed and a
re-approved one is. Docs: the enterprise deployment page no longer claims
feature policies are enforced.

Signed-off-by: Benjamin Shafii <[email protected]>
@benjaminshafii
benjaminshafii requested a review from a team September 25, 2026 21:20
@mintlify

mintlify Bot commented Sep 25, 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 25, 2026, 9:28 PM

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

@vercel

vercel Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
openwork-app Ready Ready Preview Sep 25, 2026 9:30pm UTC
3 Skipped Deployments
Project Deployment Actions Updated
openwork-den Ignored Ignored Preview Sep 25, 2026 9:30pm UTC
openwork-diagnostics Ignored Ignored Preview Sep 25, 2026 9:30pm UTC
openwork-landing Ignored Ignored Preview Sep 25, 2026 9:30pm UTC

@github-actions

github-actions Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

OpenWork evidence

Status Commit Preview Updated
🟡 Updating evidence ece7f13 View run 2026-09-25 21:30:19 UTC

A preview for this commit is being prepared.

refreshFresh now always fetches the organization's desktop config, so a
failed fetch (offline, or an older or unavailable Den) would have failed
Check now and the alpha channel resolution. Fall back to the last known
config, matching the install re-check's existing offline rule.

Rename updatePolicyKnown to allowedVersionsKnown and split the MDM docs:
allowed desktop versions are an organization setting, not a desktop policy.

Signed-off-by: Benjamin Shafii <[email protected]>
The cloud build requires sign-in again, so its packaged first launch shows
the sign-in surface (the contract before #5131) instead of the signed-out
task composer.

Signed-off-by: Benjamin Shafii <[email protected]>
@benjaminshafii
benjaminshafii merged commit 6c93a9c into dev Sep 25, 2026
32 of 34 checks passed

This branch was successfully deployed

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

1 participant