Skip to main content

Cortex chat defaults

Status: Ready

Truth label: Current

Audience: Fleet operator

Reader outcome: Use cortex chat defaults in Cortex, with every control, its verification, and its limits stated.

Last verified: 2026-09-13

Open Settings > Chat defaults. Manage Cortex also opens the same editor. See Cortex management for search and keyboard access.

Chat defaults manages the operator's voice, lens, saved source selection, provider/model, sampling, audience, format, writing mode, example retrieval, polish, the optional meaning verifier and automatic memory saving in one versioned record.

  1. Open Chat defaults. Each Inherit checkbox leaves that field to process configuration or its built-in default. Uncheck it to supply an operator value.
  2. Preview effective defaults. The result names each value's source and provider support. Preview does not generate text or contact a model.
  3. Save. New requests that omit settings use the saved revision immediately. Existing conversation controls keep their values.
  4. Choose Use saved defaults in this conversation to replace the current controls. Starting a new conversation also loads the latest defaults. A browser reload restores the cached conversation settings when present.

History restoration and JSON import populate an editor. Preview and save create a new revision. Export downloads the saved override set. A stale save preserves unsaved controls and requires reloading. Removed profile or source references remain visible as unavailable so they can be repaired.

Load current conversation into editor copies its controls for review while preserving defaults for settings absent from the composer. Custom source choices must first become a named selection in Sources; choose that selection in this editor. Saved presets resolve their current definition for each new inherited request. Existing frozen task/comparison evidence remains separate.

Resolution and limits​

Precedence is explicit request, operator value, then process configuration or built-in fallback. Null operator values mean inherit. For request sampling fields, an explicitly present null resets to the provider default; omission inherits. Explicit blank audience/format, false memory saving and false polish override saved values. The composer retains those explicit controls in conversation snapshots. Polish supports off, auto and always; toggling the conversation checkbox records an explicit on/off override.

Brain resolves one defaults revision at the start of each shared chat turn. Generation settings retain operator_settings_revision, setting_origins and resolved writing context. Both HTTP and streaming use that resolution. The model catalog refreshes its default provider/model even when discovery is cached. CLI startup uses the saved provider/model; its older direct agent loop does not expose all Cortex turn controls.

The older Voice and drafts default picker updates the same record and revision, so it cannot silently overwrite another defaults edit. Legacy voice rows are read without a migration write; the first save retains that baseline in history.

This editor does not manage credentials, endpoint URLs, worker settings or project scope. Local Ollama host declarations have their own Local models editor. Provider discovery and successful saving do not establish model availability or writing quality. Original writing and repeated operator review remain needed for those judgments.

API and storage​

  • GET /settings/operator: saved values, revision, effective values with source, active/unavailable state, errors, provider controls and history.
  • POST /settings/operator/preview: {base_revision, values}; inspect a candidate.
  • PUT /settings/operator: the same body; save with a revision conflict guard.
  • GET /settings/operator/versions: retained override history.

Current settings and versions live in operator_settings and operator_settings_versions inside DATA_DIR/writing.sqlite3. Null fields are portable inheritance declarations, so an imported record can resolve differently on another installation. Compare the effective preview before saving.

Verification uses tests/test_operator_settings.py and the real Cortex browser flow tests/browser/chat-defaults.mjs against the private writing fixture. No live operator settings or model endpoints are changed by those tests.