From cf5915dfbc6b4a2df8baeb5d74044322c9947dae Mon Sep 17 00:00:00 2001 From: JOJO <1498581755@qq.com> Date: Sun, 12 Apr 2026 16:34:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=89=8D=E7=AB=AFstore=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0AGENTS.md=E8=87=AA=E5=8A=A8=E6=B3=A8=E5=85=A5=E5=92=8C?= =?UTF-8?q?=E6=A0=B9=E7=9B=AE=E5=BD=95=E5=88=9B=E5=BB=BA=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/src/stores/personalization.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/static/src/stores/personalization.ts b/static/src/stores/personalization.ts index b49bdc9..9207de3 100644 --- a/static/src/stores/personalization.ts +++ b/static/src/stores/personalization.ts @@ -37,6 +37,8 @@ interface PersonalForm { shallow_compress_max_replace_per_round: number | null; shallow_compress_trigger_tool_calls_interval: number | null; deep_compress_trigger_tokens: number | null; + agents_md_auto_inject: boolean; + allow_root_file_creation: boolean; } interface ExperimentState { @@ -102,7 +104,9 @@ const defaultForm = (): PersonalForm => ({ shallow_compress_keep_recent_tools: null, shallow_compress_max_replace_per_round: null, shallow_compress_trigger_tool_calls_interval: null, - deep_compress_trigger_tokens: null + deep_compress_trigger_tokens: null, + agents_md_auto_inject: false, + allow_root_file_creation: false }); const defaultExperimentState = (): ExperimentState => ({ @@ -275,7 +279,9 @@ export const usePersonalizationStore = defineStore('personalization', { ), deep_compress_trigger_tokens: this.normalizeCompressionNumber( data.deep_compress_trigger_tokens - ) + ), + agents_md_auto_inject: !!data.agents_md_auto_inject, + allow_root_file_creation: !!data.allow_root_file_creation }; this.clearFeedback(); },