Preserve preview harness, editor, email and task improvements

Snapshot current maintainer-preview application changes and regression fixtures for integration into lab. Excludes local runtime data, evaluation outputs and source backups. Focused Python regression selection: 140 passed; full suite not certified.
This commit is contained in:
pewdiepie-archdaemon
2026-10-01 01:34:26 +00:00
parent 86f376ac3a
commit 2e8413a54a
170 changed files with 11010 additions and 1094 deletions
+7 -1
View File
@@ -847,6 +847,11 @@ async function _openEmail(em, itemEl, preloadedData = null, mode = 'reply', note
await _docModule.openEmailDraft(data);
return;
}
if (wantsAiReply && _docModule?.generateEmailReply) {
const opened = await _openEmail(em, itemEl, data, 'reply-all', '', '', mailboxContext);
if (!opened) return false;
return await _docModule.generateEmailReply({ mode: 'ai-reply-fast', noteHint, originalBody: data.body }) === true;
}
if (wantsAiReply) {
const activeReplyAccount = data.account_id || em.account_id || accountAtStart;
if (data.cached_ai_reply && !noteHint && !activeReplyAccount) {
@@ -1128,7 +1133,8 @@ async function _openEmail(em, itemEl, preloadedData = null, mode = 'reply', note
// connection (or when caching is interfering). loadDocument's
// GET path can still be used as a fallback.
if (_docModule.injectFreshDoc) {
_docModule.injectFreshDoc(doc);
await _docModule.injectFreshDoc(doc);
if (!isCurrentOpen()) return;
} else {
await _docModule.loadDocument(doc.id);
if (!isCurrentOpen()) return;