Files

description, kind
description kind
Settings shell, ownerless copy, and durable product-onboarding namespace for the dsh web client: the General section, trigger chrome, and onboarding ledger projection. package-reference

@deepseek-ai/dsh-client-ui-settings-general

English | 中文

Summary

dsh-client-ui-settings-general is the settings shell of the dsh web client: the Settings panel opens from the sidebar's bottom control with the trigger chrome and modal shell, the navigation is built from the sections features contribute, and first-run users are walked through one onboarding step at a time. It also registers everything on the Settings pages that belongs to no single feature: the trigger/header/close chrome content, the local configuration-file action, the General section and its settings.general.item slot, and the settings dictionaries. Feature-owned rows (Permission, Language, Appearance), sections (Models), and conditional onboarding steps stay with their feature packages; the shell itself ships no onboarding copy of its own.

Table of Contents


Use this package

Users reach the shell through the sidebar's bottom Settings control; feature plugins contribute their pages and onboarding steps through the slot ledgers this shell projects. The shell renders the modal panel, the navigation built from settings.section entries, and exactly one mounted onboarding step at a time.

The General section

The General section holds rows registered into settings.general.item by feature packages — it has no built-in rows. Feature plugins own the row copy and behavior; the shell only provides the section and its slot. The Appearance row, for example, lives in ui-theme.

Opening the configuration file

On a loopback browser, the shell renders Open configuration file only when the Host confirms that a provider-owned local document can be prepared. The action opens that document in the native text editor (bypassing the browser file association on macOS). Remote browsers never register the action and never issue the privileged settings read.

Onboarding steps

The onboarding ledger projects in ascending order and mounts exactly one step at a time. Registrants own durable completion, capability readiness, copy, mutations, and their visible wrapper, so independently registered flows cannot stack and the shell does not become a second configuration fact source. Visible steps own their dialog chrome and app-root inert lifecycle.


Understand the implementation

Implementation internals — click to expand

The shell owns the chrome and the projections; every piece of content and copy belongs to a registrant.

Ledger projections

The navigation is a projection of the settings.section ledger; nav labels may be locale-following thunks, resolved through resolveSlotLabel and re-rendered on the section ledger bump or the locale revision (an optional ctx.get('locale') read; no hard locale dependency). The onboarding ledger projects in ascending order; the active registrant receives its id, complete(), and an openSection(id) callback, and completing or skipping transfers ownership to the next entry.

Document availability

On a loopback page, the Client loads the provider's hasDocument capability through settings/describe and renders Open configuration file only when the Host confirms that a provider-owned local document can be prepared. The action calls the pathless, browser-authenticated settings/openSettingsDocument Remote; the Host resolves the provider path again, materializes an absent document, and hands it to a native text editor (open -t on macOS, bypassing a browser file association; the desktop file association on Linux and Windows; Windows association after wslpath -w translation on WSL). Open failures keep the action available and render a localized error. Reopening the dialog or reconnecting refreshes availability after a transient read failure or Host topology change. Non-loopback pages retain the Client policy that withholds this native action and its settings read.

Host half

The Host half registers ui-onboarding in the user-settings seam. The welcome step contributed by ui-settings-models reads and writes its welcomeNoticeVersion through the existing public settings boundary; the shell itself remains policy-free.


Further Exploration

These pages cover the settings surface family and the composition model.

  • ui-settings — the domain base whose slot types and scope service this shell builds on.
  • ui-sidebar — the sidebar shell hosting the sidebar.settings seat.
  • ui-settings-models — the feature package contributing the DeepSeek onboarding step.
  • settings — the durable user-settings seam and its file provider.
  • Slot system standard — the composition model behind the ledgers.

Model Experience

None, as the package is a browser-side UI plugin layer that registers nothing model-facing.

KV Cache effect

None; this package neither assembles nor sends a provider request.

Known Limitations and Deferred Work

These limits define what the shell itself provides versus what features must supply; they are current package constraints.

  • The General section has no built-in rows — each row appears only when its owning feature plugin is mounted; the shell cannot fill the section alone.

Dev Note

Working context for maintainers — click to expand

None.