feat: Auto-Commit Flag für Agents - neues Property AgentRecord.AutoCommit (bool) - DB-Migration: agents.auto_commit INTEGER NOT NULL DEFAULT 0 - Agent Create/Update um autoCommit erweitert - SystemPromptBuilder: bedingte Commit-Regel im Verhalten-Abschnitt - AutoCommit=true: Agent MUSS nach Änderungen committen - AutoCommit=false: Agent darf NIE eigenständig committen - Frontend: Checkbox 'Auto-Commit erlauben' in Agent-Settings

This commit is contained in:
Meleki committed 2026-03-01 01:46:04 +01:00
1 parent ab4ce839b4
commit 5037c7d24e
6 files changed
+35 -10

No files matched your search

+3
View File
@@ -21,6 +21,7 @@ registerPage('agent', {
const personaEl = document.getElementById('agentPersona');
const instructionsEl = document.getElementById('agentInstructions');
const toolChoiceEl = document.getElementById('agentToolChoice');
const autoCommitEl = document.getElementById('agentAutoCommit');
const avatarPreview = document.getElementById('avatarPreview');
const avatarInput = document.getElementById('avatarInput');
const avatarBtn = document.getElementById('avatarBtn');
@@ -41,6 +42,7 @@ registerPage('agent', {
personaEl.value = agent.persona || '';
instructionsEl.value = agent.instructions || '';
toolChoiceEl.checked = (agent.toolChoice || 'any') === 'any';
autoCommitEl.checked = !!agent.autoCommit;
_agentAvatarData = agent.avatar || null;
deleteBtn.hidden = false;
@@ -103,6 +105,7 @@ registerPage('agent', {
persona: personaEl.value,
instructions: instructionsEl.value,
toolChoice: toolChoiceEl.checked ? 'any' : 'auto',
autoCommit: autoCommitEl.checked,
avatar: _agentAvatarData,
customCommands: getCommandsFromUI(commandsList)
};