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
+4
-2
@@ -41,11 +41,13 @@ async function apiMe() {
|
||||
|
||||
// ── API Calls ──
|
||||
|
||||
async function apiChat(content, sessionId, signal) {
|
||||
async function apiChat(content, sessionId, signal, planMode) {
|
||||
var payload = { content, sessionId };
|
||||
if (planMode) payload.planMode = true;
|
||||
return fetch('/api/chat', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ content, sessionId }),
|
||||
body: JSON.stringify(payload),
|
||||
signal
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user