mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-05 01:50:27 +08:00
fix(issue): improve queue archiving logic to handle empty tasks and solutions
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user