implementation
Implement in your agent
# Implement Progress bar in your agent ## Objective Implement Progress bar for this verified behavior: A visual and semantic indicator for task completion: it exposes a value within a known range when measurable and remains indeterminate when no reliable value exists. ## Prerequisites - Inspect the repository, design system, and existing tests first. - Preserve unrelated changes and keep the file scope bounded. - Confirm that Progress bar matches the need before writing code. ## Required behavior - The current value advances within a known minimum and maximum without excessive announcements. - The content region exposes its busy state while a separate visual indicator remains redundant. ## States to cover - Upload idle — Upload idle - Upload with measured progress — Upload with measured progress - Upload without a reliable estimate — Upload without a reliable estimate - Upload cancelled — Upload cancelled - Upload complete — Upload complete ## Accessibility - The primary control or named region for Progress bar has a stable accessible name from visible text or an explicit programmatic label; placeholder text and tooltips are not names. - The progress indicator does not receive focus; focus remains on the operation controls or current task. - It ends only on completion, failure, or explicit cancellation and is replaced by the matching final status. - Tab skips the noninteractive bar - Tab reaches a separate Cancel action when available ## Non-goals - The value is guessed or jumps unpredictably - Only the content shape, not completion, matters ## Acceptance criteria - Minimum, maximum, and current value are real - A visible or accessible label names the operation - Updates are understandable rather than noisy - Completion, failure, and cancellation have final states
sha256:cb96d57d5986879b8cf790a9b99fe8bc59db6f128e3af43f798ac87c67514493