feat: Plan-Modus – Toggle im Chat zum Umschalten zwischen Plan/Ausführung
- Toggle-Button (🗺️) im Chat-Input-Bereich neben Explorer - Plan-Modus wird per ChatRequest.planMode an Backend gesendet - Backend: Write-Tools gefiltert (nur read_file, list_files, glob, grep, todo_write, memory_*, ask_user_choice bleiben), System-Prompt-Block ergänzt der Änderungen verbietet, tool_choice nie 'any' erzwungen - ChainRecord.PlanMode: pro Chain gespeichert (informativ für History) - Chain-Meta-Badge '📋 Plan-Modus' bei Plan-Chains - Choice-Response erbt planMode vom vorherigen Chain - CSS: .plan-mode-active Styling (Primary-Color Highlight) - Placeholder wechselt zu 'Plannen...' wenn aktiv - Plan-Modus wird bei Session-Wechsel zurückgesetzt
This commit is contained in:
1 parent
1c11ffa3cd
commit
6d95f9aec2
13 files changed
+123
-13
No files matched your search
@@ -19,5 +19,6 @@ public class ChainRecord
|
||||
public string ToolNames { get; set; }
|
||||
public string ArchiveId { get; set; }
|
||||
public string StreamErrorInfo { get; set; }
|
||||
public bool PlanMode { get; set; }
|
||||
public string CreatedAt { get; set; }
|
||||
}
|
||||
@@ -17,6 +17,7 @@ public class ChatContext
|
||||
public int MaxIterations { get; set; }
|
||||
public AgentRecord Agent { get; set; }
|
||||
public SessionRecord Session { get; set; }
|
||||
public bool PlanMode { get; set; }
|
||||
|
||||
// Review-Agent
|
||||
public ReviewContext Review { get; set; }
|
||||
|
||||
@@ -144,4 +144,10 @@ public class ChatRequest
|
||||
/// </summary>
|
||||
[JsonPropertyName("choiceResult")]
|
||||
public string ChoiceResult { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Wenn true: Plan-Modus aktiv. Nur Read-only Tools, keine Datei-Änderungen.
|
||||
/// </summary>
|
||||
[JsonPropertyName("planMode")]
|
||||
public bool PlanMode { get; set; }
|
||||
}
|
||||
Reference in new issue
Block a user