llm: drop model/agent scope matching; add instance-wide compaction model picker
Nightly Build / build (push) Successful in 6m50s
Nightly Build / build (push) Successful in 6m50s
Remove the scope system end-to-end (llm_models.scope column, agent meta scope field, scope-based tier in model selection, UI checkboxes/pills): it was only a soft ranking hint, had drifted (6 UI scopes vs 3 used by agents, 'general' not even selectable) and duplicated what strength already decides. Strength stays the single AUTO-selection axis. Compaction: the summary model is now pickable from the Settings page via a new PropertyType::LlmModel config property (registry key compaction_model), instance-wide and live (no restart). Fallback chain: explicit pick -> compaction.strength from config.yml -> priority order; a deleted configured model degrades to AUTO. ContextCompactor reads the key at compact time through GlobalConfigManager.
This commit is contained in:
+5
-3
@@ -177,11 +177,14 @@ export default {
|
||||
'config.error_save':'Error saving "{name}": {msg}',
|
||||
'config.enabled': 'Enabled',
|
||||
'config.disabled': 'Disabled',
|
||||
'config.llm_model.auto': 'auto',
|
||||
|
||||
'config.set.interface.name': 'Interface',
|
||||
'config.set.interface.desc': 'Look and feel of the web interface.',
|
||||
'config.set.tic_agent.name': 'TIC Agent',
|
||||
'config.set.tic_agent.desc': 'TIC is a background agent that monitors all async events generated by connected MCP servers (new emails, calendar updates, WhatsApp messages, etc.). It reads your notification rules from data/notifications.md and your memory to decide — via an LLM call — which events are worth surfacing. Relevant notifications are forwarded to the home agent set via /sethome.',
|
||||
'config.set.compaction.name': 'Compaction',
|
||||
'config.set.compaction.desc': 'When a conversation grows too large, older messages are summarised by an LLM to keep the context within limits.',
|
||||
|
||||
'config.prop.ui_locale.name': 'Language',
|
||||
'config.prop.ui_locale.desc': 'Default interface language for the whole instance. Each user can override it on their profile.',
|
||||
@@ -191,6 +194,8 @@ export default {
|
||||
'config.prop.tic__security_group.desc': 'Tool permission group applied to each TIC agent session. Leave empty to use the default group.',
|
||||
'config.prop.tic__interval_minutes.name': 'Check Interval (minutes)',
|
||||
'config.prop.tic__interval_minutes.desc': 'How often TIC runs, in minutes. Leave empty to use the value from config.yml (tic.interval_secs).',
|
||||
'config.prop.compaction_model.name': 'Compaction model',
|
||||
'config.prop.compaction_model.desc': 'Model used to summarise compacted conversations, for the whole instance. A cheap model is usually enough. Leave empty for automatic selection.',
|
||||
|
||||
// ── Projects ────────────────────────────────────────────────────────────────
|
||||
'projects.title': 'Projects',
|
||||
@@ -444,7 +449,6 @@ export default {
|
||||
'models.reasoning.thinking': 'Reasoning (thinking)',
|
||||
'models.strength': 'Strength',
|
||||
'models.priority': 'Priority',
|
||||
'models.scope': 'Scope',
|
||||
'models.default_model': 'Default model',
|
||||
'models.extra_params': 'Extra params',
|
||||
'models.extra_params_hint': '(JSON, optional)',
|
||||
@@ -743,7 +747,6 @@ export default {
|
||||
'agents.detail.meta': 'Metadata',
|
||||
'agents.detail.id': 'ID',
|
||||
'agents.detail.strength': 'Strength',
|
||||
'agents.detail.scope': 'Scope',
|
||||
'agents.detail.pinned_model': 'Pinned model',
|
||||
'agents.detail.memory_files': 'Memory files',
|
||||
'agents.detail.model_order': 'Model resolution order',
|
||||
@@ -756,7 +759,6 @@ export default {
|
||||
'agents.table.strength': 'Strength',
|
||||
'agents.table.name': 'Name',
|
||||
'agents.table.model_id': 'Model ID',
|
||||
'agents.table.scope': 'Scope',
|
||||
|
||||
'agents.banner.title': '<strong>Read-only view.</strong> Agents are defined by files in <code>agents/</code> — to add, remove, or modify an agent, edit the corresponding <code>AGENT.md</code> file in that directory.',
|
||||
'agents.banner.text': 'You can also ask <strong>Copilot</strong> (top bar) to create a new agent for you — just describe what it should do and it will set up all the files automatically.',
|
||||
|
||||
+5
-3
@@ -177,11 +177,14 @@ export default {
|
||||
'config.error_save':'Erreur lors de l\'enregistrement de "{name}" : {msg}',
|
||||
'config.enabled': 'Activé',
|
||||
'config.disabled': 'Désactivé',
|
||||
'config.llm_model.auto': 'auto',
|
||||
|
||||
'config.set.interface.name': 'Interface',
|
||||
'config.set.interface.desc': 'Aspect et style de l\'interface web.',
|
||||
'config.set.tic_agent.name': 'Agent TIC',
|
||||
'config.set.tic_agent.desc': 'TIC est un agent d\'arrière-plan qui surveille tous les événements asynchrones générés par les serveurs MCP connectés (nouveaux e-mails, mises à jour du calendrier, messages WhatsApp, etc.). Il lit vos règles de notification dans data/notifications.md et votre mémoire pour décider — via un appel LLM — quels événements méritent d\'être signalés. Les notifications pertinentes sont transmises à l\'agent d\'accueil défini via /sethome.',
|
||||
'config.set.compaction.name': 'Compaction',
|
||||
'config.set.compaction.desc': 'Lorsqu\'une conversation devient trop longue, les messages les plus anciens sont résumés par un LLM pour garder le contexte dans les limites.',
|
||||
|
||||
'config.prop.ui_locale.name': 'Langue',
|
||||
'config.prop.ui_locale.desc': 'Langue d\'interface par défaut pour l\'ensemble de l\'instance. Chaque utilisateur peut la modifier dans son profil.',
|
||||
@@ -191,6 +194,8 @@ export default {
|
||||
'config.prop.tic__security_group.desc': 'Groupe de permissions d\'outils appliqué à chaque session de l\'agent TIC. Laissez vide pour utiliser le groupe par défaut.',
|
||||
'config.prop.tic__interval_minutes.name': 'Intervalle de vérification (minutes)',
|
||||
'config.prop.tic__interval_minutes.desc': 'Fréquence d\'exécution de TIC, en minutes. Laissez vide pour utiliser la valeur de config.yml (tic.interval_secs).',
|
||||
'config.prop.compaction_model.name': 'Modèle de compaction',
|
||||
'config.prop.compaction_model.desc': 'Modèle utilisé pour résumer les conversations compactées, pour toute l\'instance. Un modèle économique suffit généralement. Laissez vide pour une sélection automatique.',
|
||||
|
||||
// ── Projects ────────────────────────────────────────────────────────────────
|
||||
'projects.title': 'Projets',
|
||||
@@ -444,7 +449,6 @@ export default {
|
||||
'models.reasoning.thinking': 'Raisonnement (réflexion)',
|
||||
'models.strength': 'Puissance',
|
||||
'models.priority': 'Priorité',
|
||||
'models.scope': 'Portée',
|
||||
'models.default_model': 'Modèle par défaut',
|
||||
'models.extra_params': 'Paramètres supplémentaires',
|
||||
'models.extra_params_hint': '(JSON, facultatif)',
|
||||
@@ -743,7 +747,6 @@ export default {
|
||||
'agents.detail.meta': 'Métadonnées',
|
||||
'agents.detail.id': 'ID',
|
||||
'agents.detail.strength': 'Puissance',
|
||||
'agents.detail.scope': 'Portée',
|
||||
'agents.detail.pinned_model': 'Modèle épinglé',
|
||||
'agents.detail.memory_files': 'Fichiers mémoire',
|
||||
'agents.detail.model_order': 'Ordre de résolution des modèles',
|
||||
@@ -756,7 +759,6 @@ export default {
|
||||
'agents.table.strength': 'Puissance',
|
||||
'agents.table.name': 'Nom',
|
||||
'agents.table.model_id': 'ID du modèle',
|
||||
'agents.table.scope': 'Portée',
|
||||
|
||||
'agents.banner.title': '<strong>Vue en lecture seule.</strong> Les agents sont définis par des fichiers dans <code>agents/</code> — pour ajouter, supprimer ou modifier un agent, modifiez le fichier <code>AGENT.md</code> correspondant dans ce répertoire.',
|
||||
'agents.banner.text': 'Vous pouvez aussi demander au <strong>Copilot</strong> (barre supérieure) de créer un nouvel agent pour vous — décrivez simplement ce qu\'il doit faire et il configurera tous les fichiers automatiquement.',
|
||||
|
||||
+5
-3
@@ -201,11 +201,14 @@ export default {
|
||||
'config.error_save':'Errore durante il salvataggio di "{name}": {msg}',
|
||||
'config.enabled': 'Attivato',
|
||||
'config.disabled': 'Disattivato',
|
||||
'config.llm_model.auto': 'automatico',
|
||||
|
||||
'config.set.interface.name': 'Interfaccia',
|
||||
'config.set.interface.desc': 'Aspetto e stile dell\'interfaccia web.',
|
||||
'config.set.tic_agent.name': 'Agente TIC',
|
||||
'config.set.tic_agent.desc': 'TIC è un agente in background che monitora tutti gli eventi asincroni generati dai server MCP connessi (nuove email, aggiornamenti del calendario, messaggi WhatsApp, ecc.). Legge le regole di notifica da data/notifications.md e la memoria per decidere — tramite una chiamata LLM — quali eventi vale la pena segnalare. Le notifiche rilevanti vengono inoltrate all\'agente predefinito impostato tramite /sethome.',
|
||||
'config.set.compaction.name': 'Compattazione',
|
||||
'config.set.compaction.desc': 'Quando una conversazione diventa troppo lunga, i messaggi più vecchi vengono riassunti da un LLM per mantenere il contesto entro i limiti.',
|
||||
|
||||
'config.prop.ui_locale.name': 'Lingua',
|
||||
'config.prop.ui_locale.desc': 'Lingua predefinita per l\'intera istanza. Ogni utente può modificarla nel proprio profilo.',
|
||||
@@ -215,6 +218,8 @@ export default {
|
||||
'config.prop.tic__security_group.desc': 'Gruppo di permessi strumenti applicato a ogni sessione dell\'agente TIC. Lascia vuoto per usare il gruppo predefinito.',
|
||||
'config.prop.tic__interval_minutes.name': 'Intervallo di controllo (minuti)',
|
||||
'config.prop.tic__interval_minutes.desc': 'Ogni quanto TIC viene eseguito, in minuti. Lascia vuoto per usare il valore da config.yml (tic.interval_secs).',
|
||||
'config.prop.compaction_model.name': 'Modello per la compattazione',
|
||||
'config.prop.compaction_model.desc': 'Modello usato per riassumere le conversazioni compattate, per tutta l\'istanza. Un modello economico di solito è sufficiente. Lascia vuoto per la selezione automatica.',
|
||||
|
||||
// ── Projects ────────────────────────────────────────────────────────────────
|
||||
'projects.title': 'Progetti',
|
||||
@@ -444,7 +449,6 @@ export default {
|
||||
'models.reasoning.thinking': 'Ragionamento (thinking)',
|
||||
'models.strength': 'Forza',
|
||||
'models.priority': 'Priorità',
|
||||
'models.scope': 'Ambito',
|
||||
'models.default_model': 'Modello predefinito',
|
||||
'models.extra_params': 'Parametri extra',
|
||||
'models.extra_params_hint': '(JSON, opzionale)',
|
||||
@@ -743,7 +747,6 @@ export default {
|
||||
'agents.detail.meta': 'Metadati',
|
||||
'agents.detail.id': 'ID',
|
||||
'agents.detail.strength': 'Forza',
|
||||
'agents.detail.scope': 'Ambito',
|
||||
'agents.detail.pinned_model': 'Modello fissato',
|
||||
'agents.detail.memory_files': 'File di memoria',
|
||||
'agents.detail.model_order': 'Ordine di risoluzione modelli',
|
||||
@@ -756,7 +759,6 @@ export default {
|
||||
'agents.table.strength': 'Forza',
|
||||
'agents.table.name': 'Nome',
|
||||
'agents.table.model_id': 'ID modello',
|
||||
'agents.table.scope': 'Ambito',
|
||||
|
||||
'agents.banner.title': '<strong>Vista sola lettura.</strong> Gli agenti sono definiti da file in <code>agents/</code> — per aggiungere, rimuovere o modificare un agente, modifica il corrispondente file <code>AGENT.md</code> in quella directory.',
|
||||
'agents.banner.text': 'Puoi anche chiedere a <strong>Copilot</strong> (barra superiore) di creare un nuovo agente per te — descrivi cosa dovrebbe fare e configurerà automaticamente tutti i file necessari.',
|
||||
|
||||
Reference in New Issue
Block a user