Skip to content

Storage Settings Secrets and History

YarCraSy edited this page Jul 8, 2026 · 2 revisions

Previous page: Overview

Settings, Secrets, and History

SettingsManager

Reads and writes deepseek-copilot.* configuration.

It must handle:

  • DeepSeek-only defaults.
  • normalization of toolExecutionModes.
  • ignoring old configuration that no longer applies.
  • never persisting apiKey.

SecretsManager

Stores the API key with context.secrets.

Current key:

  • deepseek-copilot.apiKey

Rule: never write the API key to logs, history, settings, or visible messages.

HistoryManager

Stores conversations in context.globalState.

It should support:

  • listing history.
  • loading a conversation.
  • deleting a conversation.
  • persisting relevant messages after generation completes.

History should avoid storing temporary data that can be rebuilt from the UI.


Next page: Overview

Clone this wiki locally