fix(issue): improve queue archiving logic to handle empty tasks and solutions

This commit is contained in:
catlog22
2025-12-28 22:56:51 +08:00
parent e2f4241b2e
commit 382d330525

View File

@@ -1059,7 +1059,8 @@ async function queueAction(subAction: string | undefined, issueId: string | unde
// Archive current queue
if (subAction === 'archive') {
const queue = readActiveQueue();
if (!queue.id || queue.tasks.length === 0) {
const items = queue.solutions || queue.tasks || [];
if (!queue.id || items.length === 0) {
console.log(chalk.yellow('No active queue to archive'));
return;
}