Skip to content

BUG: AI Tagging Shows 0% Progress for Empty Folders Instead of "No Images" Message #592

@SiddharthJiyani

Description

@SiddharthJiyani

Description

When AI tagging is enabled on a folder with no images, the progress bar shows 0% indefinitely instead of displaying a meaningful message that the folder is empty.

Current Behavior

  • User adds an empty folder (no images)
  • User enables AI tagging
  • Progress bar displays: 0 / 0 images (0%) and stays stuck at 0%
  • No indication that the folder is actually empty

Expected Behavior

  • System should detect empty folders
  • Display a clear message: "No images found in this folder" or "This folder contains 0 images to process"
  • Optionally disable AI tagging toggle with a warning

Root Cause

Backend API Issue: The tagging status endpoint returns identical responses for:

  • Folders with 0% progress (actively processing)
  • Folders with no images at all
{
  "folder_id": "xxx",
  "total_images": 0,
  "tagged_images": 0,
  "tagging_percentage": 0
}

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions