mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-13 02:41:50 +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
|
// Archive current queue
|
||||||
if (subAction === 'archive') {
|
if (subAction === 'archive') {
|
||||||
const queue = readActiveQueue();
|
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'));
|
console.log(chalk.yellow('No active queue to archive'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user