Skip to content

fix: progress bar resets to 1/total_items on completion (#38)#201

Merged
himanshu231204 merged 2 commits into
mainfrom
fix/progress-bar-reset
Jul 21, 2026
Merged

fix: progress bar resets to 1/total_items on completion (#38)#201
himanshu231204 merged 2 commits into
mainfrom
fix/progress-bar-reset

Conversation

@himanshu231204

Copy link
Copy Markdown
Member

Problem

The progress bar briefly resets to 1/total_items during the loading-to-evaluation transition in oaeval run.

Root cause: At line 124, completed=1, total=1 marks the task "done". At line 126, total changes to total_items but completed stays at 1, causing Rich to render 1/total_items.

Fix

3-line change in openagent_eval/cli/commands/run.py:

Line Before After
124 completed=1, total=1 Removed (keep indeterminate during load)
126 total=total_items total=total_items, completed=0 (clean start)
146 completed=total_items Removed (already set at line 128)

Verification

  • ruff check - All checks passed
  • pytest tests/integration/test_cli_integration/test_run.py - 4/4 passed (including test_run_shows_progress)

Fixes #38

himanshu231204 and others added 2 commits July 21, 2026 20:19
Remove redundant completed/total updates that caused the progress bar
to briefly show 1/total_items during the loading-to-evaluation transition.

- Line 124: Remove completed=1,total=1 (keep task indeterminate during load)
- Line 126: Add completed=0 when setting total (clean determinate start)
- Line 146: Remove redundant completed=total_items (already set at line 128)

Fixes #38
@himanshu231204
himanshu231204 merged commit 13a469a into main Jul 21, 2026
9 checks passed
@github-actions

Copy link
Copy Markdown

🎉 Congratulations @himanshu231204!

Your pull request has been successfully merged into main. 🚀

Thank you for contributing to OpenAgentHQ and helping improve the project.

We truly appreciate your contribution and hope to see you back with more amazing PRs!

Happy Open Sourcing! ❤️

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Progress bar resets to 1/total_items on completion in run.py:146 (completed=True)

1 participant