feat: add manual/auto conversation compaction and preserve full export history

This commit is contained in:
Xiaohan-Tian
2026-06-01 19:55:59 -07:00
parent 936fb461e3
commit c1d9f4c9fb
23 changed files with 1059 additions and 27 deletions
+2
View File
@@ -10,6 +10,7 @@ interface AppConfig {
language: LanguageSetting;
llm_provider: 'local_browser' | 'openai' | 'gemini' | 'claude' | 'claude_openrouter' | 'openai_compatible';
persist_api_keys_non_localhost: boolean;
auto_compact_threshold_percent: 80 | 90 | 95;
local_browser: {
context_length: 32768 | 65536 | 131072;
model_url: string;
@@ -209,6 +210,7 @@ export class ConfigManager {
language: 'auto',
llm_provider: 'local_browser',
persist_api_keys_non_localhost: false,
auto_compact_threshold_percent: 90,
openai: {
api_key: '',
flex: false,