Custom Commands: Typen (Hintergrund/Vordergrund/Nachricht) mit Output-Modal

This commit is contained in:
Meleki committed 2026-02-28 21:30:15 +01:00
1 parent d83a6f60ef
commit ab234fde69
8 files changed
+241 -36

No files matched your search

+5 -3
View File
@@ -104,12 +104,14 @@ async function apiUpdateSession(sessionId, data) {
return resp.json();
}
async function apiExecCommand(sessionId, command) {
return fetch(`/api/sessions/${sessionId}/exec`, {
async function apiExecCommand(sessionId, command, mode = 'background') {
const resp = await fetch(`/api/sessions/${sessionId}/exec`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ command })
body: JSON.stringify({ command, mode })
});
if (mode === 'foreground') return resp.json();
return resp;
}
async function apiGetSystemPrompt(sessionId) {