fix: progress bar reset + ctx variable shadowing (#98, #99)#162
Merged
himanshu231204 merged 3 commits intoJul 16, 2026
Merged
Conversation
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.
|
🎉 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! ❤️ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two small fixes
#98: Progress bar resets to 1/total_items on completion
progress.update(task, completed=True)in Rich sets completed to 1 (sinceTrue == 1), overriding the earliercompleted=total_items. Changed tocompleted=total_items.#99: ctx variable shadowed from CLIContext to click.Context
Renamed
click.get_current_context()result fromctxtoclick_ctxto avoid shadowing theCLIContextvariable.Fixes #98, fixes #99
Support my work: https://buymeacoffee.com/muhamedfazalps