feat: use "mode" instead of "thinking_enabled" and "is_plan_mode"

This commit is contained in:
Henry Li
2026-01-29 15:48:50 +08:00
parent caf469d2ab
commit 7bf15cb777
4 changed files with 46 additions and 49 deletions

View File

@@ -3,8 +3,7 @@ import type { AgentThreadContext } from "../threads";
export const DEFAULT_LOCAL_SETTINGS: LocalSettings = {
context: {
model_name: undefined,
thinking_enabled: true,
is_plan_mode: true,
mode: undefined,
},
layout: {
sidebar_collapsed: false,
@@ -14,7 +13,12 @@ export const DEFAULT_LOCAL_SETTINGS: LocalSettings = {
const LOCAL_SETTINGS_KEY = "deerflow.local-settings";
export interface LocalSettings {
context: Omit<AgentThreadContext, "thread_id">;
context: Omit<
AgentThreadContext,
"thread_id" | "is_plan_mode" | "thinking_enabled"
> & {
mode: "flash" | "thinking" | "pro" | undefined;
};
layout: {
sidebar_collapsed: boolean;
};