Introducing a new way to review your PRs.

Read the announcement

triliumnext / trilium

Build your personal knowledge base with Trilium Notes

View on GitHub

20 documents · Updated Nov 23, 2026

docs / client-settings-and-session-security

Client settings and session security

The client provides the safe entry and control points around a Trilium knowledge base. It guides a new or existing instance through language selection, unlock, backup, restore, and synchronization choices. After the database is open, its settings workspace manages account access, protected-note sessions, sync, desktop behavior, integrations, transcription, and personal preferences.

Setup lifecycle

The setup flow is a guarded path used when the client has no usable database or when a database must be closed before it is copied or replaced. It keeps destructive choices behind an explicit backup or erase decision and returns to the main application only after the new or restored database is ready. apps/…/setup.tsx• L60-96, apps/…/setup.tsx• L146-209.

The main setup states are:

SituationClient behavior
Existing protected databaseAsk for the database credentials before showing setup actions.
Interrupted initial syncReopen the sync progress view and continue watching the work.
Existing usable databaseOffer to keep it or make a backup before choosing a replacement.
New or cleared instanceOffer an empty document, a demo document, server sync, desktop sync, or backup restore.

The language step comes before the existing-data choice or the replacement menu. This lets questions about the user's database use the language selected for the current setup run. The client also uses the same setup surface for first launch and for a later request to restore or back up. This gives the database a quiet period in which it can be copied or exchanged without normal application work changing it. apps/…/setup.tsx• L139-185, apps/…/setup_mode.ts• L7-32.

Unlock gate

The unlock gate protects a setup screen that still has a real knowledge base behind it. The user enters the normal password and, when required, a time-based one-time password (TOTP). A successful answer gives the setup flow a short-lived in-memory setup token; a reload asks again rather than keeping access on disk. apps/…/setup_unlock.tsx• L28-60, apps/…/setup_auth.ts• L1-24.

This gate is separate from the normal logged-in session. The request layer adds the setup token only while the setup flow is unlocked, so setup actions cannot be reached by an ordinary application session or by a stale page after reload. apps/…/server.ts• L17-42.

References: apps/…/setup_unlock.tsx• L28-60 apps/…/setup_auth.ts• L1-24 apps/…/server.ts• L17-42

Existing-data choice

When a database is already present, the client first asks whether to keep it or make a backup. Keeping it ends setup without changing the database. Choosing a replacement path leaves the backup opportunity behind once the user confirms the choice. Desktop sync is the exception in how it performs the replacement: it asks for an explicit erase confirmation before it waits for another desktop to push the data. apps/…/setup_existing.tsx• L26-36, apps/…/setup_existing.tsx• L206-263, apps/…/setup.tsx• L279-295.

The backup path reports progress and shows where the resulting file can be found. The standalone build streams a copy as a download. Other builds can store a backup and expose its name, path, and size before the user continues. apps/…/setup_existing.tsx• L266-316, apps/…/setup_existing.tsx• L318-447.

References: apps/…/setup_existing.tsx• L26-36 apps/…/setup_existing.tsx• L206-263 apps/…/setup_existing.tsx• L266-316 apps/…/setup_existing.tsx• L318-447 apps/…/setup.tsx• L279-295

Replacement choices

The setup menu turns the user's goal into one of four replacement paths. A new document can include a demo or start empty. Server sync asks for the sync server, password, optional TOTP, and optional proxy. Desktop sync shows reachable addresses and waits for the other device to send the data. Restore accepts a known backup instead. apps/…/setup.tsx• L266-350, apps/…/setup.tsx• L643-798, apps/…/setup.tsx• L800-880.

The two sync paths have different owners. In server sync, this client starts the pull and reports connection, transfer, finalization, or failure. After a failed attempt, it can restore the saved server host and proxy while leaving the password empty. Credential errors stay on the form; failures after the database is erased are shown as setup errors. In desktop sync, the other desktop pushes the data and this client waits for the new schema before showing progress. Desktop sync first confirms that another device can reach this client; a desktop build can enable LAN access and restart when that reachability is not available. A mobile client also limits large blob content during initial sync to protect its local memory. apps/…/setup.tsx• L409-529, apps/…/setup.tsx• L643-798, apps/…/setup.tsx• L800-880.

An interrupted server sync resumes on its progress screen and starts a new sync attempt. A failed attempt keeps its error visible until the next attempt starts, then returns to progress or finishes setup if the retry has already converged. apps/…/setup.tsx• L101-117, apps/…/setup.tsx• L409-529.

This diagram shows how setup moves from protection and preservation to one database-opening result.

flowchart TD
    A[Start or restart] --> B{Database behind setup?}
    B -- Yes --> C[Unlock]
    B -- No --> D[Choose language]
    C --> D
    D --> E{Existing data?}
    E -- Yes --> F[Keep or back up]
    E -- No --> G[Replacement menu]
    F -- Keep --> H[Open existing database]
    F -- Replace --> G
    G --> I[New document]
    G --> J[Sync from server]
    G --> K[Sync from desktop]
    G --> L[Restore backup]
    I --> M[Open new database]
    J --> N[Sync and finalize]
    K --> N
    L --> O[Check, replace, and migrate]
    N --> M
    O --> M

References: apps/…/setup.tsx• L101-209 apps/…/setup.tsx• L409-529 apps/…/setup.tsx• L643-880

Restore flow

Restore starts with a backup already known to the application or with a file selected by the user. Non-standalone clients upload a selected file in chunks. The standalone client sends the file to its local database worker instead. Encrypted backups pause for a passphrase before the restore starts. apps/…/setup_restore.tsx• L50-180, apps/…/setup_restore.tsx• L352-459.

The restore then reports its current work until it finishes or gives a reason for refusal. A wrong passphrase returns to the passphrase step without making the user choose the file again. Other failures return to file selection and explain whether the backup is too new, too old, incomplete, damaged, or unable to replace the current database. apps/…/setup_restore.tsx• L183-218, apps/…/setup_restore.tsx• L501-647.

References: apps/…/setup_restore.tsx• L50-180 apps/…/setup_restore.tsx• L183-218 apps/…/setup_restore.tsx• L501-647

Settings workspace

The settings workspace is a single dialog with a page list and a page body. Desktop layouts show both at once. Mobile layouts use a master-detail view so the page list and the selected page do not compete for screen space. The workspace keeps navigation inside the dialog, filters pages by platform, and returns each newly selected page to the top of its scroll area. apps/…/OptionsDialog.tsx• L23-79, apps/…/OptionsDialog.tsx• L179-239.

Settings navigation

The page list follows the application's settings page order and names. A search field searches across settings pages rather than only the page currently open. Focusing the field opens search mode, while an empty query returns to the page list. On mobile, results replace the page list only after the user enters search terms. The dialog remembers the last page for the current client session, but it does not persist that choice as a user setting. apps/…/OptionsDialog.tsx• L34-67, apps/…/OptionsDialog.tsx• L127-163, apps/…/SettingsSearch.tsx• L20-43.

The same search control also serves searchable dialogs opened from settings. In the font picker, it searches the available font groups and keeps the field focused when the user clears it. The shared item picker uses the same search model for grouped choices such as content languages and code MIME types. This gives settings and their related pickers the same search behavior without changing the selected page. apps/…/SettingsSearch.tsx• L10-55, apps/…/appearance_fonts.tsx• L548-609, apps/…/item_picker.tsx• L64-130, apps/…/content_languages_card.tsx• L50-64, apps/…/code_mime_types_card.tsx• L73-91.

Settings pages can be limited to desktop, server, or non-standalone builds. This keeps controls that need a local desktop shell or a server service out of the normal list while still allowing the page model to stay shared. See Desktop shell and IPC for the boundary between client settings and desktop actions. apps/…/OptionsDialog.tsx• L179-218.

The active-content page presents its categories as one searchable list with a view choice and item actions. Its toolbar fills the settings pane, while mobile layouts move the filter and view controls onto separate rows and place item details in a readable menu summary. apps/…/active_content.css• L1-23, apps/…/active_content.css• L74-122.

References: apps/…/OptionsDialog.tsx• L23-79 apps/…/OptionsDialog.tsx• L127-163 apps/…/OptionsDialog.tsx• L179-239 apps/…/SettingsNavigation.tsx• L12-39 apps/…/SettingsSearch.tsx• L10-55 apps/…/appearance_fonts.tsx• L548-609 apps/…/item_picker.tsx• L64-130 apps/…/content_languages_card.tsx• L50-64 apps/…/code_mime_types_card.tsx• L73-91 apps/…/active_content.css• L1-152

Option persistence

Most controls read a shared set of user options and save a changed value as soon as the user changes it. The client updates its local view first, then restores the old value if the server rejects the save. This makes the controls feel immediate without hiding a failed write. apps/…/options.ts• L8-18, apps/…/options.ts• L24-45, apps/…/options.ts• L68-116.

Some choices need a new process or front-end before they can take effect. Those pages show a restart action or apply the change at once when the platform supports it. A setting that changes only the current client should not be confused with a setting that changes the shared knowledge base or its server. apps/…/RestartAction.tsx• L13-31, apps/…/desktop.tsx• L38-114.

References: apps/…/options.ts• L8-18 apps/…/options.ts• L68-116 apps/…/RestartAction.tsx• L13-31 apps/…/desktop.tsx• L38-114

The popup editor opens a note in a detached editing surface while keeping the main client available behind it. It routes links within the popup to the same surface and sends settings notes to the dedicated settings dialog instead of treating them as editable note content. apps/…/PopupEditor.tsx• L42-94, apps/…/PopupEditor.tsx• L128-139.

The popup can show attachments, note views, backlinks, and an optional note-type switcher. Maximizing carries the current view into a tab so an attachment or special view does not silently become only its parent note. It also closes when the shown note is deleted. On mobile it uses a separate editor toolbar. When stacked over another dialog, it manages its backdrop and layer so editor menus and nested dialogs remain usable. apps/…/PopupEditor.tsx• L118-228, apps/…/PopupEditor.css• L1-13, apps/…/PopupEditor.css• L94-210, apps/…/PopupEditor.spec.tsx• L308-592.

References: apps/…/PopupEditor.tsx• L42-94 apps/…/PopupEditor.tsx• L118-228 apps/…/PopupEditor.css• L1-13 apps/…/PopupEditor.css• L94-210 apps/…/PopupEditor.spec.tsx• L308-592

The link editor gives note writing one place to create or change links to notes, web addresses, headings, and document anchors. It is shared by a modal and by the editor's inline balloon, so the same link rules apply whether the user edits from a full dialog or at the caret. apps/…/edit_link.tsx• L28-113, apps/…/edit_link.tsx• L115-191.

The editor preserves the existing target, title, anchor, and preview details when a link is changed. It normalizes addresses, moves pasted URLs to the web-link choice, and lets web pages use a plain link, inline preview, card, or supported media player. A selected text range keeps its own title and does not become a preview. Headings appear as a nested list above document anchors, with the current target selected and brought into view. The submit action stays unavailable until the selected side has a usable note, address, heading, or anchor. apps/…/edit_link.tsx• L224-348, apps/…/edit_link.tsx• L397-457, apps/…/edit_link.tsx• L535-697, apps/…/edit_link.tsx• L705-826, apps/…/edit_link.spec.tsx• L165-350.

The link balloon adapts its focus and layout to the device. On a narrow screen it waits for a user tap before opening the keyboard, while a card description submits on Enter only when text composition is complete. URL fields also support replacing their value from the clipboard. apps/…/edit_link.css• L1-91, apps/…/edit_link.spec.tsx• L324-358, apps/…/edit_link.spec.tsx• L784-804.

References: apps/…/edit_link.tsx• L28-113 apps/…/edit_link.tsx• L115-191 apps/…/edit_link.tsx• L224-348 apps/…/edit_link.tsx• L397-457 apps/…/edit_link.tsx• L535-697 apps/…/edit_link.tsx• L705-826 apps/…/edit_link.css• L1-91 apps/…/edit_link.spec.tsx• L165-350 apps/…/edit_link.spec.tsx• L784-804

Media insertion

The media insertion dialog is a focused editor action for adding a YouTube player or an audio or video file. It accepts only HTTP(S) addresses, adds HTTPS when the user omits a scheme, and explains invalid addresses before the user can submit. apps/…/insert_media.tsx• L23-27, apps/…/insert_media.tsx• L125-173.

The same form works as a modal on mobile and as an inline balloon where the editor has room for one. Insertion stays disabled while the media callback is pending. The modal closes only after insertion succeeds; a failure keeps the form open and reports an error. The URL field also supports replacing its value from the clipboard. apps/…/insert_media.tsx• L28-87, apps/…/insert_media.tsx• L90-123, apps/…/insert_media.spec.tsx• L47-129, apps/…/insert_media.spec.tsx• L131-197.

References: apps/…/insert_media.tsx• L23-27 apps/…/insert_media.tsx• L28-173 apps/…/insert_media.css• L1-30 apps/…/insert_media.spec.tsx• L32-45 apps/…/insert_media.spec.tsx• L47-129 apps/…/insert_media.spec.tsx• L131-197

Editor action dialogs

Editor action dialogs turn a note action into a focused choice and then return the result to the editor or note tree. They use the same note lookup and autocomplete patterns as other client dialogs while keeping the main workspace available.

Note embedding

The note embedding dialog inserts a selected note into the current editor as a content block or, for image-like notes, as an image. It chooses a suitable display size from the selected note and allows the user to override that size when the caller supports resizing. apps/…/content_embed.tsx• L24-28, apps/…/content_embed.tsx• L105-135, apps/…/content_embed.tsx• L227-245.

The same form works in a modal and in an inline editor balloon. It clears its prior note and size when opened again, supports note creation from autocomplete, and keeps submission unavailable until a note is selected. Compact embeds can hide their title when their content already provides a compact view. apps/…/content_embed.tsx• L30-63, apps/…/content_embed.tsx• L70-103, apps/…/content_embed.tsx• L136-187.

References: apps/…/content_embed.tsx• L24-28 apps/…/content_embed.tsx• L30-63 apps/…/content_embed.tsx• L70-103 apps/…/content_embed.tsx• L105-187 apps/…/content_embed.tsx• L227-245

Note relocation

The move-to dialog changes the parent of selected note branches. It shows the branches that will move, asks the user to choose a target parent note, resolves that note to a branch, and then reports the new parent after the move completes. apps/…/move_to.tsx• L15-43, apps/…/move_to.tsx• L45-81.

The dialog opens from a move event and focuses note autocomplete when shown. It closes before the move request starts, so the note tree can process the branch change without keeping the modal open. A missing target path or parent branch stops the action rather than moving notes to an unknown location. apps/…/move_to.tsx• L21-43, apps/…/move_to.tsx• L50-67.

References: apps/…/move_to.tsx• L15-43 apps/…/move_to.tsx• L45-81

Account and session controls

The account and session pages cover both access to the server and access to protected notes. These are related but separate protections: the account controls who can open the instance, while the protected-note session controls when protected note content becomes available during an otherwise valid session.

Protected subtree actions

The protect-subtree dialog turns a tree action into an explicit protection or unprotection step. It names the target subtree when its content is readable and explains the effect before the client changes the note's protected state. apps/…/protect_subtree.tsx• L25-49, apps/…/protect_subtree.tsx• L103-113

The dialog is used for both actions. If no protected-note session is active, it collects the account password and creates that session before it applies the action. A wrong password keeps the dialog open and makes no change. When a session already exists, protecting proceeds after the action prompt, while unprotecting still requires an explicit confirmation. Both paths use the protected-session service, so the action stays behind the same session boundary as other protected-note work. apps/…/protect_subtree.tsx• L52-67, apps/…/protect_subtree.tsx• L69-100, apps/…/protect_subtree.spec.tsx• L76-136

References: apps/…/protect_subtree.tsx• L25-49 apps/…/protect_subtree.tsx• L52-113 apps/…/protect_subtree.spec.tsx• L76-136

Sign-in methods

On server builds, the settings page lets the account choose local password sign-in or external OAuth sign-in. Local sign-in can use TOTP as a second factor. The selected method controls which status and setup controls appear below it. apps/…/password.tsx• L191-249.

OAuth must be configured by the server before the user can connect an account. The client shows whether the provider is not configured, configured but not connected, or connected. Connecting uses the provider sign-in round trip, while disconnecting requires explicit confirmation. apps/…/password.tsx• L252-377.

Local sign-in can add TOTP, which is an authenticator-app second factor. Enrollment first proves that the authenticator has the generated secret. It then shows recovery codes and commits the factor only after the user confirms that the codes were saved. Existing recovery codes can be replaced or the factor can be removed. The settings view shows which recovery codes remain available and which have been used. apps/…/totp.tsx• L26-139, apps/…/totp.tsx• L157-272, apps/…/totp.tsx• L489-537.

References: apps/…/password.tsx• L191-249 apps/…/password.tsx• L252-377 apps/…/totp.tsx• L26-139 apps/…/totp.tsx• L157-272 apps/…/totp.tsx• L489-537

Initial password

An account that has no password uses a dedicated setup page to create its first one before normal sign-in. The page requires a confirmed password that meets the minimum length and returns the user to the login flow after the server accepts it. apps/…/set_password.tsx• L16-49.

References: apps/…/set_password.tsx• L16-49

Password changes

The password page supports a normal password change and a deliberately explicit password reset. A successful password change clears the current protected-note session because the old password is no longer a valid key for that session. The page also controls the timeout for protected-note access. apps/…/password.tsx• L43-189.

References: apps/…/password.tsx• L43-189

Protected-note session

A protected-note session is a temporary unlock inside a valid application session. When a user first requests a protected note action, the client asks for the password. On success it refreshes note data and announces that protected content is available. The server can later announce logout, which causes the client to reload its front end and hide the protected data again. apps/…/protected_session.ts• L26-71, apps/…/protected_session.ts• L73-92.

The session stays active through use of protected notes and ends through timeout or explicit logout. Its password dialog is opened by application events rather than by a settings page, so protected-note access can be requested from the note workflow itself. Revision actions also check this session before allowing operations on protected revisions. apps/…/protected_session_holder.ts• L4-35, apps/…/protected_session_password.tsx• L9-38, apps/…/revisions.tsx• L488-491.

References: apps/…/protected_session.ts• L26-71 apps/…/protected_session.ts• L73-92 apps/…/protected_session_holder.ts• L4-35 apps/…/protected_session_password.tsx• L9-38 apps/…/revisions.tsx• L488-491

Synchronization and recovery

Synchronization settings connect a client to a sync server and define how long it waits for that connection. The page also provides a connection test. Setup uses the same host, password, TOTP, and proxy concepts for the first pull, while the regular settings page changes the saved connection used by later sync work. apps/…/sync.tsx• L23-110, apps/…/setup.tsx• L643-798.

Backup settings provide the recovery side of synchronization. Stored-backup builds can schedule daily, weekly, or monthly copies and can list, download, and locate them. Desktop builds can select a backup directory and protect automatic backups with a keyring-backed passphrase. Standalone uses manual download and upload because it does not keep a server-side backup directory. apps/…/backup.tsx• L33-82, apps/…/backup.tsx• L249-280, apps/…/backup.tsx• L283-464.

The settings page also exposes database-wide maintenance, storage status, anonymized copies, and a start-over request. Standalone clients report whether browser storage is persistent. A start-over request is safe until setup acts on it: desktop and standalone can restart themselves, while a server records a pending request for its operator to apply or cancel; the pending state remains visible at the top of the page. apps/…/database.tsx• L41-91, apps/…/database.tsx• L104-195, apps/…/database.tsx• L485-552, apps/…/database.css• L1-17.

See Client experience for how these settings support the wider client lifecycle and Core domain and common contracts for the shared data and service contracts that these flows use. See Client note editing and navigation for the note work that happens after setup completes.

Sync settings

The sync page treats connection details as saved account data rather than as one-time setup input. It keeps host and proxy edits local while the user types, saves them on field exit, and saves them before a connection test. A failed test reports the handshake result without changing the purpose of the page into a sync progress view. apps/…/sync.tsx• L30-51.

References: apps/…/sync.tsx• L23-110

Backup settings

The backup page separates routine copies from replacement actions. “Back up now” creates a copy of the current database. “Restore” moves into setup so the database can be closed before a backup replaces it. Encryption and compression describe the format of future backups; they do not rewrite files that already exist. apps/…/backup.tsx• L120-149, apps/…/backup.tsx• L151-245, apps/…/backup.tsx• L342-464.

References: apps/…/backup.tsx• L120-149 apps/…/backup.tsx• L151-245 apps/…/backup.tsx• L342-464

Desktop and integration controls

The client uses settings to expose capabilities that depend on the host around it. Desktop-only settings cover the tray, startup, window appearance, zoom, hardware use, and network exposure. Server-side or external integrations appear as account or service settings instead of being folded into local display preferences.

Desktop behavior

Desktop settings control whether the application stays in the tray, starts with the operating system, starts hidden, uses a native title bar, and uses platform window effects. A custom web search engine can also be selected for desktop actions. Some changes apply immediately; others require a restart and are marked as such. apps/…/desktop.tsx• L15-35, apps/…/desktop.tsx• L38-177, apps/…/appearance.tsx• L398-447.

Security settings control high-risk local capabilities such as backend scripting, the SQL console, and desktop LAN access. The desktop asks for confirmation and applies restart-required changes as a group. Non-desktop builds show guidance for server configuration instead of pretending that a local toggle can change the server. apps/…/security.tsx• L14-55, apps/…/security.tsx• L57-73, apps/…/security.tsx• L82-184.

References: apps/…/desktop.tsx• L15-177 apps/…/appearance.tsx• L398-447 apps/…/security.tsx• L14-55 apps/…/security.tsx• L57-184

External integrations

ETAPI tokens give external programs a named way to use the application's API. The user creates a token, sees its value once, and can later rename or delete it. The list refreshes when token changes arrive from another client. apps/…/etapi.tsx• L21-54, apps/…/etapi.tsx• L93-152.

The AI settings use one switch for the feature and one shared provider set for model and web-search providers. Each saved provider has a kind that separates model use from web search while keeping both in the same settings area. Provider setup groups choices by hosted service, subscription-backed service, self-hosted service, or custom endpoint. A setup flow collects the needed key or endpoint, then either lets the user choose models or runs a test search. apps/…/llm.tsx• L24-133, apps/…/AddProviderModal.tsx• L22-32, apps/…/AddProviderModal.tsx• L113-187, apps/…/AddProviderModal.tsx• L370-480.

Model providers store the selected model details so normal chat does not need a live provider listing on every use. The model step loads the provider's current catalog, seeds recommended models for a new provider, refreshes metadata for saved models, and lets the user select all, none, or the recommended set. A failed or empty listing offers retry and does not prevent the provider from being saved. apps/…/ModelSelection.tsx• L35-39, apps/…/ModelSelection.tsx• L46-81, apps/…/ModelSelection.tsx• L118-165.

Search providers do not have a model-selection step. The client runs a test search with the entered connection details and shows a small result set with links and snippets. A failed test offers retry and changes the final action to add or save anyway, so a temporary service failure does not create a dead end. An unchanged search-provider edit can save without another test. apps/…/AddProviderModal.tsx• L459-480, apps/…/SearchProviderCheck.tsx• L24-49, apps/…/SearchProviderCheck.tsx• L51-89.

Subscription providers can use a host process for sign-in instead of an API key. Local providers require an endpoint, while cloud providers normally use a key and treat an endpoint as an optional override. Standalone disables providers that need a host process or reject browser requests. Unknown provider types still receive a generic mark so restored or newer configurations remain readable. apps/…/AddProviderModal.tsx• L129-187, apps/…/AddProviderModal.tsx• L206-231, apps/…/AddProviderModal.tsx• L542-580, apps/…/provider_icons.ts• L1-39.

The page also exposes MCP, an inbound endpoint that publishes selected application tools to compatible clients. It shows local and reachable network addresses only when the server can accept network traffic. MCP is disabled in the standalone build because that build has no network listener. apps/…/llm.tsx• L136-228.

Import integrations let users bring note content into a selected note from local files or connected services. The shared import dialog groups service providers separately from local file import, while each provider owns its connection, source selection, and background progress. Local import options stay available in the same dialog without changing the settings workspace. apps/…/import_dialog.tsx• L15-19, apps/…/import_dialog.tsx• L65-85, apps/…/files.tsx• L116-175, apps/…/import_dialog.css• L1-48.

OneNote adds an account connection and a hierarchical notebook and section picker. Desktop sign-in completes through the desktop host; web sign-in uses a device code while the client waits for the account connection. After sign-in, the user can refresh the source list, select sections, and start the import. A failed source load clears stale choices and leaves a retry path instead of presenting an empty account as valid. apps/…/onenote.tsx• L46-63, apps/…/onenote.tsx• L93-183, apps/…/onenote.tsx• L230-328, apps/…/import_dialog.css• L50-117.

References: apps/…/etapi.tsx• L21-54 apps/…/etapi.tsx• L93-152 apps/…/etapi.css• L1-20 apps/…/llm.tsx• L24-228 apps/…/AddProviderModal.tsx• L22-32 apps/…/AddProviderModal.tsx• L113-187 apps/…/AddProviderModal.tsx• L370-480 apps/…/ModelSelection.tsx• L35-165 apps/…/SearchProviderCheck.tsx• L24-89 apps/…/provider_icons.ts• L1-39 apps/…/import_dialog.tsx• L15-19 apps/…/files.tsx• L116-175 apps/…/onenote.tsx• L46-183 apps/…/onenote.tsx• L230-328 apps/…/import_dialog.css• L1-117

User preference groups

User preferences change how the client presents and edits notes. They are separate from account security and sync connection data, but they share the same settings workspace and option-save path.

Language and appearance

Language settings choose the interface language, number and date formatting, the default writing language, and the content languages available to editors. The content-language list is shared with a separate language dialog used by note and assistant workflows. Appearance settings choose a theme family, color mode, note title style, layout, fonts, motion, shadows, and content width. Built-in themes can follow the operating system's color preference, while custom themes provide their own color rules and do not use the built-in color-mode choice. Theme changes take effect without a page reload, and the client keeps the prior theme if the new style cannot load. The client hides or disables choices when the platform cannot use them. apps/…/i18n.tsx• L17-37, apps/…/i18n.tsx• L39-93, apps/…/content_languages_card.tsx• L23-64, apps/…/content_languages.tsx• L17-81, apps/…/appearance.tsx• L85-197, apps/…/appearance.tsx• L200-215, apps/…/appearance.tsx• L319-399, apps/…/theme.ts• L30-37, apps/…/theme.ts• L142-168, apps/…/theme.ts• L177-228.

Some preferences use a multi-column checkbox list for language and highlight choices. The list keeps each choice aligned with the surrounding text and supports a configurable column width for larger sets of options. apps/…/CheckboxList.tsx• L3-45, apps/…/CheckboxList.css• L1-12.

References: apps/…/i18n.tsx• L17-37 apps/…/i18n.tsx• L39-93 apps/…/content_languages_card.tsx• L23-64 apps/…/content_languages.tsx• L17-81 apps/…/appearance.tsx• L85-197 apps/…/appearance.tsx• L451-531 apps/…/theme.ts• L30-37 apps/…/theme.ts• L142-168 apps/…/theme.ts• L177-228 apps/…/CheckboxList.tsx• L3-45 apps/…/CheckboxList.css• L1-12

Custom fonts

The appearance page can enable font overrides for four areas: the main interface, note tree, note detail, and monospace text. A shared picker lets the user choose a font and size for each area without leaving the dialog. It shows generic browser families, named stock families, installed desktop fonts when the desktop can list them, and fonts stored in notes marked for use as custom fonts. The picker loads these font lists only when opened, which keeps the settings page light until the user needs them. apps/…/appearance_fonts.tsx• L136-199, apps/…/appearance_fonts.tsx• L207-337, apps/…/appearance_fonts.tsx• L559-675.

The picker searches by font group or displayed font name and previews the selected area with content that matches its use. A custom font is loaded for the current settings session and removed when that session ends. If loading fails, the choice stays available and the client uses a normal fallback font. The picker keeps the four targets in one dialog and lets the user set size with either a slider or a number field. On mobile it keeps the preview out of the dialog so the list and size controls have room. Monospace ligatures remain a separate preference because they belong to the theme's monospace font. apps/…/appearance_fonts.tsx• L328-408, apps/…/appearance_fonts.tsx• L548-690, apps/…/custom_fonts.ts• L29-109, apps/…/custom_fonts.ts• L111-146.

Font rows remain visible but disabled until font overrides are enabled. The picker uses installed fonts on desktop when available and a filtered stock list on builds that cannot list local fonts. It omits the preview on mobile so the font list keeps the available space. apps/…/appearance_fonts.tsx• L136-199, apps/…/appearance_fonts.tsx• L212-327, apps/…/appearance_fonts.css• L1-10, apps/…/appearance_fonts.css• L39-141.

The font picker keeps long family names and font samples readable as the available width changes. Its list can skip rows outside the visible area, while the picker reserves separate space for search, font choices, size controls, and a preview. apps/…/appearance_fonts.css• L19-37, apps/…/appearance_fonts.css• L39-141.

References: apps/…/appearance_fonts.tsx• L136-199 apps/…/appearance_fonts.tsx• L211-337 apps/…/appearance_fonts.tsx• L328-408 apps/…/appearance_fonts.tsx• L548-690 apps/…/appearance_fonts.css• L1-10 apps/…/appearance_fonts.css• L39-145 apps/…/custom_fonts.ts• L29-146 apps/…/appearance_fonts.spec.tsx• L163-342 apps/…/appearance_fonts.spec.tsx• L344-500

Editing preferences

Text-note settings shape the editor toolbar, as-you-type helpers, heading style, code blocks, table of contents, and highlight lists. The toolbar can float near the selection or stay fixed, and its multi-line layout is available only where the chosen toolbar can use it. Optional editor features include math input, emoji completion, note and link-target completion, slash commands, content hints, link previews, link title and detail retrieval, sticky table headers, and HTML support. apps/…/text_notes.tsx• L34-73, apps/…/text_notes.tsx• L81-105, apps/…/text_notes.tsx• L151-273.

Vim mode adds a separate editing style with optional hints, insert keys, and startup commands. The first enable action shows a notice so the change does not appear without context. Automatic replacements cover quote styles, punctuation, math, symbols, and user-defined text pairs. A custom pair replaces an existing case-insensitive match instead of creating duplicate rules, and incomplete pairs are not saved. apps/…/text_notes.tsx• L277-339, apps/…/text_notes.tsx• L347-400, apps/…/text_notes.tsx• L445-537.

Code-block settings separately control the highlighting theme, whether it follows the application color scheme, wrapping, and tab width. A preview shows the result before it is used in a note. The language list controls which MIME types appear in code-note choices, can be sorted or manually ordered, and shows where each language has syntax support. apps/…/text_notes.tsx• L669-739, apps/…/code_notes.tsx• L20-39, apps/…/code_notes.tsx• L49-173, apps/…/code_mime_types_card.tsx• L25-57, apps/…/code_mime_types_card.tsx• L93-155.

Shortcut settings expose the actions available to the current client, allow custom bindings, mark conflicts, and restore defaults. These controls affect editing behavior without changing the note data itself. The page groups its filter, conflict indicator, and actions in a responsive header. Each shortcut row shows its current keys, conflict state, and controls for recording or reverting bindings. apps/…/text_notes.tsx• L45-51, apps/…/shortcuts.tsx• L28-73, apps/…/shortcuts.tsx• L446-537, apps/…/shortcuts.css• L1-204.

References: apps/…/text_notes.tsx• L34-73 apps/…/text_notes.tsx• L81-105 apps/…/text_notes.tsx• L151-273 apps/…/text_notes.tsx• L277-339 apps/…/text_notes.tsx• L347-400 apps/…/text_notes.tsx• L445-537 apps/…/text_notes.tsx• L669-739 apps/…/text_notes.spec.tsx• L74-231 apps/…/code_notes.tsx• L20-39 apps/…/code_notes.tsx• L49-173 apps/…/code_mime_types_card.tsx• L25-57 apps/…/code_mime_types_card.tsx• L93-155 apps/…/shortcuts.tsx• L28-73 apps/…/shortcuts.tsx• L446-537 apps/…/shortcuts.css• L1-204

Transcription settings

Transcription settings control desktop meeting transcription. The feature is marked beta and is available only when the desktop can run its transcription service. When enabled, the user chooses between standard and high-accuracy recognition models and can enable speaker identification. apps/…/transcription.tsx• L24-68, apps/…/transcription.tsx• L81-129.

The page reports the download size of each recognition model when resource data is available and links to the related resource page. It can also keep source recordings for troubleshooting, with a warning because recordings use local storage. The recording directory is shown only after the user enables that choice. apps/…/transcription.tsx• L133-155, apps/…/transcription.tsx• L158-199.

References: apps/…/transcription.tsx• L24-76 apps/…/transcription.tsx• L81-155 apps/…/transcription.tsx• L158-199

Search and media preferences

Search preferences control fuzzy matching and fuzzy autocomplete. Media preferences control automatic image download, image compression, and image text recognition where the platform has an OCR service. These settings change how new content enters or is found in the client. See Client search and visual tools for the search and inspection surfaces these preferences affect. apps/…/other.tsx• L53-75, apps/…/media.tsx• L40-99, apps/…/media.tsx• L141-183.

The Jump To Note dialog is a fast search and command entry point. It can reopen a recent search for a short time, show recent notes for a new search, and switch to commands when the query starts with >. On wide screens, highlighting a note can load a delayed preview with its path, title, attributes, and opening content. apps/…/jump_to_note.tsx• L20-43, apps/…/jump_to_note.tsx• L45-114, apps/…/jump_to_note.tsx• L153-197.

References: apps/…/other.tsx• L53-75 apps/…/media.tsx• L40-99 apps/…/media.tsx• L141-183 apps/…/jump_to_note.tsx• L20-43 apps/…/jump_to_note.tsx• L45-114 apps/…/jump_to_note.tsx• L153-197

Data-handling preferences

Other settings define search-engine behavior, cleanup timing for deleted notes and unused attachments, revision snapshot rules, imported HTML tags, sharing behavior, canvas stroke width, and update checks. The page also offers direct cleanup actions and keeps unsafe revision-limit values from enabling a meaningless erase action. Advanced settings add experimental switches and maintenance actions for sync. These controls are broad application policy choices, so changes can affect storage use, shared pages, or later imports. apps/…/other.tsx• L20-33, apps/…/other.tsx• L53-165, apps/…/other.tsx• L168-341, apps/…/other.tsx• L345-401, apps/…/advanced.tsx• L13-95, apps/…/other.spec.tsx• L88-298.

Revision history can show changes in a mobile master-detail view and keeps delete, download, and restore actions behind the protected-note session for protected revisions. It groups revisions by date, supports named snapshots, and lets the user compare text-like revisions with the current note. Rich content is rebuilt for review so stored link previews, reference links, and list alignment remain readable in both previews and diffs. apps/…/revisions.tsx• L41-217, apps/…/revisions.tsx• L228-312, apps/…/revisions.tsx• L423-541, apps/…/revisions.tsx• L628-815, apps/…/revisions.spec.tsx• L29-168, apps/…/revisions.css• L1-59.

References: apps/…/other.tsx• L20-33 apps/…/other.tsx• L53-165 apps/…/other.tsx• L168-341 apps/…/other.tsx• L345-401 apps/…/advanced.tsx• L13-95 apps/…/other.spec.tsx• L88-298 apps/…/revisions.tsx• L41-217 apps/…/revisions.tsx• L228-312 apps/…/revisions.tsx• L423-541 apps/…/revisions.tsx• L628-815 apps/…/revisions.spec.tsx• L29-168 apps/…/revisions.css• L1-59

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep the setup state transitions aligned with the bootstrap fields that decide whether the client must unlock, resume sync, select a language, preserve existing data, or open a requested target screen.
  • Keep setup authentication separate from the normal session. Changes to the request layer must preserve the in-memory setup token behavior and its reload boundary.
  • Keep restore source handling aligned across existing server backups, uploaded files, native desktop picks, and standalone local imports.
  • When a sync input changes, keep setup-time fields, saved sync options, credential-factor feedback, and the connection-test path consistent.
  • When the desktop sync path changes, keep reachability checks, explicit erase confirmation, LAN access, and incoming-schema detection aligned.
  • When a security or desktop toggle needs a restart, keep the visible pending state and the actual host configuration in agreement.
  • When an option page is added or restricted by platform, update the page navigation rules and the mobile master-detail list together.
  • When the shared settings search control or item picker changes, preserve settings-page search, grouped picker filtering, keyboard selection, and clear and focus behavior.
  • When the settings dialog changes page in place, keep the desktop scroll container and the mobile detail pane aligned with the active page.
  • When a popup editor changes, preserve its dedicated settings routing, detached note context, view scope when maximizing, deletion handling, and stacked-dialog layer rules.
  • When the link editor changes, keep note, URL, heading, and anchor targets aligned with title, bookmark, preview, selection, submit-state, paste, and mobile focus behavior.
  • When the media insertion dialog changes, keep HTTP(S) validation, media-type acceptance, paste behavior, loading state, modal and balloon submission, and post-success close behavior aligned.
  • When note embedding changes, keep note selection, automatic and manual box size, image-note handling, compact-title behavior, and modal or balloon submission aligned.
  • When note relocation changes, keep selected branches, target-note and target-branch resolution, early modal close, move completion, and success feedback aligned.
  • When an authentication method changes, keep its status display, enrollment or connection step, recovery-code lifecycle, and session invalidation behavior aligned.
  • When subtree protection changes, keep the action label, target visibility, password gate, explicit unprotect confirmation, existing-session behavior, and protected-session service call aligned for both protect and unprotect paths.
  • When AI provider settings change, keep model providers and search providers within the same saved provider set. Keep the provider kind, connection rules, selected model metadata, test-search path, standalone restrictions, and provider marks aligned.
  • When model listing changes, keep recommended-model seeding, saved model metadata refresh, superseded selections, empty selections, retry guidance, and provider-save behavior consistent.
  • When search-provider checks change, keep query credentials, result links and snippets, failure reporting, retry behavior, and the save-anyway path aligned.
  • When MCP endpoint behavior changes, keep endpoint display limited to reachable builds and addresses.
  • When an import provider or its dialog changes, keep service and local provider grouping, account connection, source selection, option disclosure, and background progress aligned.
  • When language preferences change, keep the settings list, content-language picker, note language switcher, and default-language resolution consistent.
  • When checkbox-list presentation changes, preserve selected values, disabled choices, and configurable column widths for language and highlight settings.
  • When code-note language settings change, keep the stored MIME list aligned with code-note menus and both syntax-highlighting sources.
  • When theme choices change, keep built-in theme resolution, custom-theme metadata, stylesheet loading, and effective color-scheme notifications consistent.
  • When appearance options change, keep the note title style, layout visibility, desktop-only controls, restart action, and platform support rules aligned.
  • When custom font options change, keep the enable switch, font picker values, note labels, selected font registration, previews, size controls, platform filtering, and content-reload refresh path aligned.
  • When the font picker changes, keep lazy font discovery, user-font registration and cleanup, search groups, render checks, mobile preview rules, and all four target values aligned.
  • When database status presentation changes, keep standalone persistence reporting and pending start-over state aligned with platform capabilities and setup mode.
  • When transcription settings change, keep platform support checks, resource IDs, model choices, speaker settings, recording retention, and the desktop recording service aligned.
  • When Jump To Note behavior changes, keep retained-search timing, command-mode selection, note navigation, and delayed preview loading aligned.
  • When other settings change, keep search-engine presets and custom values, cleanup actions, revision limits, HTML tag parsing, sharing checks, and platform update controls aligned.
  • When revision history changes, keep mobile list/detail navigation, date grouping, content reconstruction, diff behavior, and the protected-revision action gate aligned.
  • When text-note options change, keep toolbar mode and layout support, Vim mode notice and sub-options, editor feature dependencies, custom replacement matching, and code-block preview settings aligned with the saved option names.

Important failure modes

TriggerConsequenceGuard
Setup auth is stored across a reloadA page that can replace a database remains unlocked without a fresh passwordKeep the setup token in memory only and request it again after reload.
An interrupted sync is routed to the normal setup menuThe client can offer replacement actions while a partial database still needs its sync to finishResume the sync progress state before other setup targets, after the unlock gate.
A replacement starts without the existing-data decisionThe user can lose the only easy chance to save a copy of the current databaseRoute replacement choices through the existing-data screen, or require the explicit erase confirmation used by desktop sync.
An encrypted backup is treated as ready without its passphraseRestore fails after upload or may report a misleading unusable-file errorInspect the backup state and return to the passphrase step for passphrase-related failures.
A desktop LAN address is shown while the service listens only on loopbackThe paired device waits for a connection that cannot arriveConfirm network reachability before polling or advertising addresses, and require explicit LAN access for the desktop.
A restart-required security change is shown as liveThe page claims a risky feature is active or inactive before the host has applied itTrack pending values and show the restart action.
TOTP is enabled before recovery codes are savedThe user can lose the second factor with no fallbackVerify the authenticator first and commit the secret only after recovery-code acknowledgement.
The protected-note session survives a password changeProtected content remains tied to an invalid old passwordClear the protected session after a successful password change.
A subtree action bypasses the protected-session check or its unprotect confirmationA user can protect or unprotect a note without the required password or can remove protection without noticingRequire a new protected session when none is active, always confirm unprotect, and stop the action after a failed password check.
A model provider stores only names and not current model metadataChat can show stale costs or miss provider model capabilities until another listing occursSave the selected catalog entries and refresh their metadata when the provider lists models.
A model listing returns no usable entries and blocks the wizardA temporary provider outage or empty catalog prevents saving a providerKeep the selection step optional and offer retry without blocking provider save.
A search-provider test failure blocks saving the providerA temporary service failure turns setup into a dead endShow the error and retry action, then allow add or save anyway.
A search provider is treated as a model providerThe client asks for model choices that the service does not provide, or never checks the search pathPreserve the provider kind and route it through a test search step.
A standalone client advertises an MCP or stored-backup endpointThe user receives an address or action that the build cannot serveDisable server-only integration and stored-backup controls for standalone.
A standalone client offers a browser-incompatible search provider or a host-process providerThe user can choose a service that the build cannot reach or runKeep the provider visible but disabled with the platform reason.
A selected theme or custom font file cannot loadThe client can show the wrong colors or fall back to an unexpected fontKeep the old theme on stylesheet failure and use a normal font fallback when a custom font load fails.
The link submit action ignores the selected target's validityThe editor can apply an empty or incomplete linkDisable submission until the selected target has a usable note, address, heading, or anchor.
A pasted URL remains in note searchA web address can become the wrong link type or fail to create a linkDetect whole URLs and move them to the web-link target before submission.
Media insertion closes or accepts input while insertion is pendingThe editor can lose focus or start duplicate insertionsDisable insertion while the callback is pending and close the modal only after success.
An embedded note is treated as a normal content block when it is image-likeThe editor can create an invalid or unusable embed instead of an imageResolve the selected note type before insertion and route image, canvas, and diagram notes to image insertion.
A move target has no resolvable parent branchSelected notes can remain in an unclear state or the move can target the wrong placeResolve both note and parent branch before calling the move service.
A custom theme is shown with a built-in color modeThe client can suggest a color change that the custom theme does not supportDisable the built-in color-mode choice and show no false active mode for custom themes.
A font picker accepts a family that renders no glyphsThe user can save a font that appears blank in the clientCheck named families before saving and keep a normal fallback when a custom font cannot load.
Font discovery runs when the appearance page opensSettings can pay the cost of listing and loading fonts even when the user never edits oneStart font discovery when the picker opens and reuse the result during that picker session.
A custom replacement is stored with an empty side or a duplicate matchThe editor can apply a rule that never fires or apply an unexpected duplicateSave only complete pairs and replace existing matches without regard to case.
Vim mode sub-options appear while Vim mode is offThe settings page can imply that inactive controls affect editingShow dependent options only after Vim mode is enabled.

Key files

FileWhy to read it
apps/…/setup.tsxThe top-level setup state machine, language gate, sync recovery, and choices that lead to a usable database.
apps/…/setup_unlock.tsxThe credential gate for setup over an existing database.
apps/…/setup_existing.tsxThe preservation decision and existing-database backup path.
apps/…/setup_restore.tsxThe file selection, upload, passphrase, and restore progress flow.
apps/…/setup_mode.tsThe path from a running client into a restart or reload that opens setup.
apps/…/server.tsThe shared request boundary for sessions, CSRF recovery, and setup authentication.
apps/…/protected_session.tsThe protected-note unlock and logout lifecycle.
apps/…/protect_subtree.tsxThe explicit protect and unprotect action flow, password gate, and confirmation boundary for note subtrees.
apps/…/protect_subtree.spec.tsxThe password gate, existing-session confirmation, and action contract for subtree protection.
apps/…/set_password.tsxThe first-password screen that leads an account into normal sign-in.
apps/…/OptionsDialog.tsxThe settings workspace, platform filtering, search, mobile navigation, and scroll behavior.
apps/…/PopupEditor.tsxThe detached note editing surface, settings routing, view preservation, deletion handling, and popup lifecycle.
apps/…/PopupEditor.cssThe popup layer and responsive layout rules that keep nested dialogs and editor controls usable.
apps/…/edit_link.tsxThe shared link creation and editing flow for notes, web pages, previews, headings, anchors, and target validation.
apps/…/edit_link.cssThe link form and heading or anchor list layout across dialog and balloon surfaces.
apps/…/edit_link.spec.tsxThe link contracts for normalization, previews, target validity, paste behavior, and modal or balloon use.
apps/…/insert_media.tsxThe validated media insertion flow shared by the desktop modal and editor balloon.
apps/…/insert_media.cssThe responsive layout for the media URL form.
apps/…/insert_media.spec.tsxThe media URL, paste, loading, failure, and close behavior contracts.
apps/…/content_embed.tsxThe note selection, size choice, and image-versus-embed decision for editor insertion.
apps/…/move_to.tsxThe selected-branch move dialog and target-parent resolution flow.
apps/…/revisions.tsxRevision review, content diff and reconstruction, restore actions, responsive list/detail navigation, and protected-revision access checks.
apps/…/revisions.cssThe revision list/detail layout and mobile action placement.
apps/…/import_dialog.tsxThe shared import source picker and provider-panel lifecycle.
apps/…/files.tsxThe local file import flow and its import options.
apps/…/onenote.tsxOneNote sign-in, source loading, section selection, and import start behavior.
apps/…/import_dialog.cssThe import dialog grouping, option disclosure, account status, and source-selection layout.
apps/…/item_picker.tsxThe grouped, searchable picker shared by settings lists such as languages and code MIME types.
apps/…/content_languages.tsxThe language dialog and the note-language switcher that resolve default content language.
apps/…/jump_to_note.tsxThe recent-search, command-palette, note-selection, and wide-screen preview behavior.
apps/…/other.tsxSearch, cleanup, revision, HTML import, sharing, canvas, and update policy controls.
apps/…/active_content.cssThe responsive presentation of the active-content filter, view controls, category lists, and item summaries.
apps/…/password.tsxAccount sign-in methods, password changes, OAuth status, and protected-session timeout.
apps/…/totp.tsxTOTP enrollment, recovery-code protection, regeneration, and removal.
apps/…/sync.tsxSaved sync connection settings and the connection test.
apps/…/backup.tsxBackup schedule, format, location, and restore entry points.
apps/…/database.tsxDatabase status, maintenance, anonymized copies, and start-over behavior.
apps/…/database.cssThe database status and pending start-over notice layout.
apps/…/security.tsxHigh-risk capability controls and restart-required security changes.
apps/…/llm.tsxAI enablement, shared provider persistence, model and search provider lists, and the MCP integration boundary.
apps/…/AddProviderModal.tsxProvider groups, model-versus-search setup steps, connection requirements, standalone restrictions, and save behavior.
apps/…/ModelSelection.tsxLive model discovery, recommended defaults, metadata refresh, retry behavior, and saved model selection used by chat.
apps/…/SearchProviderCheck.tsxTest searches, result display, failure feedback, retry behavior, and the search-provider save path.
apps/…/provider_icons.tsProvider marks and the fallback used for unknown provider types.
apps/…/appearance.tsxTheme, layout, desktop appearance, performance, and content-width choices.
apps/…/appearance_fonts.tsxFont override targets, device and user font choices, previews, search, and the shared font picker.
apps/…/appearance_fonts.cssResponsive font-row and picker layout, list performance, and mobile preview behavior.
apps/…/appearance.spec.tsxAppearance page guarantees for platform visibility, layout controls, and note title style defaults.
apps/…/appearance_fonts.spec.tsxFont picker guarantees for lazy discovery, custom and installed fonts, search, render checks, previews, and size controls.
apps/…/theme.tsTheme selection, color-scheme tracking, and safe live stylesheet changes.
apps/…/custom_fonts.tsLoading and refreshing font files selected from user notes.
apps/…/i18n.tsxLanguage, formatting, and default content-language preferences.
apps/…/content_languages_card.tsxThe enabled content-language list and its add/remove behavior.
apps/…/code_notes.tsxCode-note editor settings, preview, and theme choices.
apps/…/code_mime_types_card.tsxThe code-language list and its syntax-support indicators.
apps/…/text_notes.tsxToolbar, editor features, Vim mode, replacements, code-block appearance, and note-writing preferences.
apps/…/text_notes.spec.tsxText-note option contracts for toolbar modes, dependent features, Vim mode, code-block themes, and replacements.
apps/…/transcription.tsxDesktop transcription enablement, model choice, speaker recognition, and recording retention.
apps/…/shortcuts.cssResponsive shortcut filters, conflict status, key chips, recording controls, and revert layout.