Repository navigation
fix(shared): add format_delegate_title to shared module exports - #814
Open
github-actions[bot] wants to merge 1 commit into
Open
github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
The format_delegate_title function is used by both TUI and ACP implementations but was not exported from the shared module's __init__.py. This adds it to the public API for better discoverability and API clarity. Addresses item from code quality report. Closes #813 Co-authored-by: openhands <openhands@all-hands.dev>
Contributor
Author
|
This PR is stale because it has been open for 40 days with no activity. Remove the stale label or leave a comment, otherwise it will be closed in 10 days. |
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.
Summary
Add
format_delegate_titleto the shared module's public API exports.Changes
format_delegate_titleimport toshared/__init__.pyformat_delegate_titleto__all__list for explicit public APIMotivation
The
format_delegate_titlefunction is used by both TUI and ACP implementations:openhands_cli/tui/widgets/richlog_visualizer.pyopenhands_cli/acp_impl/events/utils.pyopenhands_cli/acp_impl/events/tool_state.pyHowever, it was not exported from the shared module's
__init__.py, making it less discoverable as part of the public API. This change improves API clarity by making all shared utilities consistently importable fromopenhands_cli.shared.Related Issue
Addresses findings from #813
Testing
make lint)make test- 1361 passed)This PR was automatically generated by the Code Quality Report workflow.
Note: This message was created by an AI agent (OpenHands) on behalf of the user.