MCPcopy
hub / github.com/CodebuffAI/codebuff / loadModePreference

Function loadModePreference

cli/src/utils/settings.ts:152–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150 * @returns The saved mode, or 'DEFAULT' if not found or invalid
151 */
152export const loadModePreference = (): AgentMode => {
153 const settings = loadSettings()
154 return settings.mode ?? 'DEFAULT'
155}
156
157/**
158 * Save the agent mode preference

Callers 1

chat-store.tsFile · 0.90

Calls 1

loadSettingsFunction · 0.85

Tested by

no test coverage detected