Fix incognito agent mode and cookbook tmux preview

This commit is contained in:
pewdiepie-archdaemon
2026-06-30 01:47:48 +00:00
parent a51f65e9ba
commit c987200616
3 changed files with 42 additions and 20 deletions
+1 -2
View File
@@ -842,7 +842,6 @@ import { wireArrowUpRecall, getLastUserMessageFromChatHistory } from './composer
if (!isIncognito && !isAgentMode && documentModule && activeDocIdForSend) {
isAgentMode = true;
}
if (isIncognito) isAgentMode = false;
fd.append('mode', isAgentMode ? 'agent' : 'chat');
if (el('web-toggle').checked) {
if (isAgentMode) {
@@ -880,7 +879,7 @@ import { wireArrowUpRecall, getLastUserMessageFromChatHistory } from './composer
currentAbort = abortCtrl;
const _tState = Storage.loadToggleState();
const _isAgent = !isIncognito && (_tState.mode || 'chat') === 'agent';
const _isAgent = (_tState.mode || 'chat') === 'agent';
// Timeout: 6 min for research and agent mode, 3 min otherwise
const timeoutMs = el('research-toggle').checked || _isAgent ? RESEARCH_TIMEOUT_MS : DEFAULT_TIMEOUT_MS;