preview auto-refresh after chat tool calls, gmail sync label scoping, queue notify option, workspace-scoped chat sessions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-27 01:49:52 +00:00
co-authored by Claude Opus 4.6
parent 968d502eaa
commit 269b1026e5
11 changed files with 80 additions and 28 deletions
+3 -2
View File
@@ -21,6 +21,7 @@ export async function enqueue(params: EnqueueParams): Promise<Job> {
currentStep: 0,
createdAt: Date.now(),
meta: params.meta,
notify: params.notify,
};
await writeJob(job);
@@ -175,7 +176,7 @@ async function runJob(job: Job) {
fresh.completedAt = Date.now();
await writeJob(fresh);
console.error(`[queue] Job ${fresh.id} failed at step "${step.name}":`, errorMessage);
await notifyFailure(fresh);
if (fresh.notify !== false) await notifyFailure(fresh);
return;
}
}
@@ -186,7 +187,7 @@ async function runJob(job: Job) {
final.completedAt = Date.now();
await writeJob(final);
console.log(`[queue] Job ${final.id} completed`);
await notifyCompletion(final);
if (final.notify !== false) await notifyCompletion(final);
}
}