Skip to content

Clarify self-hosted sign-in and settings - #451

Open
akashanil-dev wants to merge 12 commits into
DuskBotAI:devfrom
akashanil-dev:feat/self-hosted-interface
Open

akashanil-dev wants to merge 12 commits into
DuskBotAI:devfrom
akashanil-dev:feat/self-hosted-interface

Conversation

@akashanil-dev

@akashanil-dev akashanil-dev commented Nov 29, 2026 •

Copy link
Copy Markdown

What and why

A self-hosted workspace now identifies the server being accessed and separates server access from optional dusk bot accounts and AI providers. Detection uses the existing environment descriptor (selfUpdate: "operator" without cloudHome), with no new operator setting. The named sign-in page offers only configured methods. Cloud plan prompts and the optional dusk cloud billing entry are hidden on self-hosted instances; desktop and dusk cloud retain their account flows.

Related settings refinements and why

These apply the same copy-and-visibility boundary to existing settings; no new screen is added:

  • Computer, Advanced and Phone: show the server name and describe server-side actions accurately. Hide workspace setup and Diagnostics export when their desktop capabilities are unavailable. Keep functional browser controls and phone pairing.
  • Profile: hide the profile email field on self-hosted instances because it edits profile metadata, not server sign-in credentials. Name, photo and About me remain available; saving them does not overwrite the hidden email.
  • Privacy: hide Help improve dusk bot until a dusk account is actually linked. Dashboard enrollment alone can still be unclaimed, so treating connected as account ownership showed a misleading control. The existing status response gains accountLinked, backed by the reporter's existing claim state and account-service confirmation. Unlinking, removal and a new pending enrollment clear the displayed account state; missing or failed status stays hidden. This supports truthful visibility without changing consent or telemetry collection. Session notes and Shared data controls stay available.

Usage auto-refresh and self-service email/password editing or recovery are excluded. There are no new runtime dependencies, endpoints, persistence stores or authentication flows.

Closes #439. Implements the requested scope.

Rebase and review status

Target: dev, as requested by the maintainer. Depends on #450; merge that first. The branch is stacked on bcd0b38d3a34b3ffc28da8303b88b9a0705790a3, with UI head 71e5ad44dd0f5956f11f614a1861805c51ccade9.

Both upstream PRs target dev, so Files changed includes the prerequisite until it lands. Review the UI-only comparison separately. After #450 merges, rebase this branch onto updated dev, especially after a squash merge. The shared menu, locale and sign-in conflicts are resolved; the resulting product tree was checked against the original UI delta applied to the new password base. The landing documentation now names dev.

The prerequisite still needs the maintainer's security review; neither PR is represented as approved.

Tested upstream base: 82cca0699240dd8524703efeb8690293370d64e5. Upstream advanced during verification; both branches also merge cleanly with dev at d012e49af2f620ac4b0b502b6d78e53fc46cabb4. That newer tip was a mergeability check, not the runtime test base.

How it was checked after the rebase

  • 182 focused tests passed across 18 files, including UI visibility, reporter claim state, route responses, docs and source guards. Cases include pending/late claims, old records, unlink/removal, reenrollment, stale responses, missing status and unchanged desktop/cloud behavior.
  • 20 light/dark settings and menu views passed in four sequential fixture batches. Both Profile email-visibility assertions passed; its existing About me textarea fill/radius warning remains on both sides of the comparison and was not suppressed.
  • Earlier long gallery runs timed out loading bots on both the password-only baseline and combined branch. The smaller sequential after batches completed; these retries are recorded separately from the passing assertions.
  • On the combined head, typecheck, lint and locale validation passed. The renderer build and packaged-server build/smoke test also passed, including bundled startup, proxy paths, MCP, CLI, encrypted backup, container lifecycle and desktop compile-cache checks.
  • The full Electron suite passed on Node 24.21.0 (the CI major version): 2,282 passed, eight skipped. An earlier Node 26 run failed the unchanged download-resume test; the whole file and then the whole suite passed on Node 24.
  • Broker tests: 113 passed. No new dependency or lockfile change was introduced by either feature branch.
  • Fresh synthetic Chrome fixtures passed wrong-password refusal, successful login, cookie sessions, browser sign-out, and rejection of the revoked cookie. An initial concurrent run timed out creating a Chrome tab; the sequential rerun passed without changing product code.
  • The full root pnpm test gate has not been run to completion after this rebase. These results are the focused checks and separate gates listed here, not a claim that the whole root suite is green.

The earlier combined revision was tested on an isolated ARM64 deployment through Coolify, including a real Codex reply. The rebased revision has not been deployed; hosted instances were left unchanged during this update. Public evidence is exclusively synthetic local fixtures.

Reproduction commands and fixture setup: self-hosted-interface verification.

  • Typecheck and lint pass
  • Complete pnpm test gate passes
  • New behavior has tests
  • No secrets, personal deployment data or local paths in feature diffs or screenshots
  • Reviewed immutable before/after screenshots attached

Before / after screenshots

Before: password prerequisite bcd0b38d3a34b3ffc28da8303b88b9a0705790a3. After: interface head 71e5ad44dd0f5956f11f614a1861805c51ccade9. All screenshots were recaptured after the rebase; the baseline gallery used the same capture harness with product code unchanged. Synthetic fixtures only; images are on separate orphan qa-assets branches and not in the feature diff.

Server sign-in — light and dark
Theme / view Before After
light password pair light before password pair light after password
dark password pair dark before password pair dark after password
light pairing pair light before pairing pair light after pairing
dark pairing pair dark before pairing pair dark after pairing

Email-code sign-in remains available: light · dark.

General
Theme / view Before After
light settings general light before settings general light after
dark settings general dark before settings general dark after
General — Privacy section
Theme / view Before After
light settings privacy light before settings privacy light after
dark settings privacy dark before settings privacy dark after
Profile
Theme / view Before After
light settings profile light before settings profile light after
dark settings profile dark before settings profile dark after
Computer
Theme / view Before After
light settings computer light before settings computer light after
dark settings computer dark before settings computer dark after
Computer — Advanced
Theme / view Before After
light settings computer advanced light before settings computer advanced light after
dark settings computer advanced dark before settings computer advanced dark after
Where bots work
Theme / view Before After
light settings computer computers light before settings computer computers light after
dark settings computer computers dark before settings computer computers dark after
Connect from elsewhere
Theme / view Before After
light settings computer elsewhere light before settings computer elsewhere light after
dark settings computer elsewhere dark before settings computer elsewhere dark after
Phone
Theme / view Before After
light settings texting light before settings texting light after
dark settings texting dark before settings texting dark after
Usage & billing
Theme / view Before After
light settings usage light before settings usage light after
dark settings usage dark before settings usage dark after
Models
Theme / view Before After
light settings engines light before settings engines light after
dark settings engines dark before settings engines dark after
Updates / Help
Theme / view Before After
light settings updates light before settings updates light after
dark settings updates dark before settings updates dark after
Profile menu
Theme / view Before After
light small account menu light before small account menu light after
dark small account menu dark before small account menu dark after

@SiddDevZ

SiddDevZ commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Thank you. This is stacked on #450, and both target main. Our PRs land on dev first (main is for releases), so please retarget both to dev and rebase when you can. #450 adds password sign-in, so it will get a dedicated security review before it merges; I'm not merging either one in this pass.

@akashanil-dev
akashanil-dev force-pushed the feat/self-hosted-interface branch from ead429a to 71e5ad4 Compare December 3, 2026 06:22
@akashanil-dev
akashanil-dev changed the base branch from main to dev December 3, 2026 06:22
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.

Make the self-hosted UI clearly separate from Dusk Cloud sign-in and promotions

2 participants