Skip to content

fix: progress bar reset + ctx variable shadowing (#98, #99)#162

Merged
himanshu231204 merged 3 commits into
OpenAgentHQ:mainfrom
fazalpsinfo-cmyk:fix/progress-bar-reset-98
Jul 16, 2026
Merged

fix: progress bar reset + ctx variable shadowing (#98, #99)#162
himanshu231204 merged 3 commits into
OpenAgentHQ:mainfrom
fazalpsinfo-cmyk:fix/progress-bar-reset-98

Conversation

@fazalpsinfo-cmyk

Copy link
Copy Markdown

Two small fixes

#98: Progress bar resets to 1/total_items on completion

progress.update(task, completed=True) in Rich sets completed to 1 (since True == 1), overriding the earlier completed=total_items. Changed to completed=total_items.

#99: ctx variable shadowed from CLIContext to click.Context

Renamed click.get_current_context() result from ctx to click_ctx to avoid shadowing the CLIContext variable.

Fixes #98, fixes #99

Support my work: https://buymeacoffee.com/muhamedfazalps

Muhamed Fazal PS and others added 3 commits July 15, 2026 18:15
progress.update(task, completed=True) in Rich sets completed to 1 (True == 1), overriding the earlier completed=total_items. Changed to completed=total_items.
…tHQ#99)

Renamed the click.get_current_context() result from 'ctx' to 'click_ctx' to avoid shadowing the CLIContext variable.
@himanshu231204 himanshu231204 merged commit 42e53ee into OpenAgentHQ:main Jul 16, 2026
9 checks passed
@github-actions

Copy link
Copy Markdown

🎉 Congratulations @fazalpsinfo-cmyk!

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.

Fix: ctx variable shadowed from CLIContext to click.Context in main.py Fix: Progress bar resets to 1/total_items on completion in run.py

2 participants