Skip to content

[FIX] Hide ProgressBar when ingest finishes #131

Description

@four-bytes-robby

Problem

In src/tui.tsx, the ProgressBar is rendered when busy() && current() > 0 && total() > 0. After an ingest completes, busy is set to false in the ready/success branch — but current and total retain their last values, so the bar can still appear momentarily until a fresh init resets them.

Additionally, the init branch doesn't reset current/total either, so a stale progress can leak from a prior operation.

Proposed Change

In handleStatus:

  • ready/success branch: also call setCurrent(0); setTotal(0);
  • init branch: also call setCurrent(0); setTotal(0); (and keep setBusy(true))

Acceptance

  • After ingest completes, ProgressBar is hidden within the next status event
  • New ingest starts with a clean 0/0 baseline (no leaked numbers from previous run)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions