Skip to content

fix(shared): add format_delegate_title to shared module exports - #814

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
fix/code-quality/export-delegate-formatter
Open

github-actions[bot] wants to merge 1 commit into
mainfrom
fix/code-quality/export-delegate-formatter

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

Add format_delegate_title to the shared module's public API exports.

Changes

  • Added format_delegate_title import to shared/__init__.py
  • Added format_delegate_title to __all__ list for explicit public API

Motivation

The format_delegate_title function is used by both TUI and ACP implementations:

  • openhands_cli/tui/widgets/richlog_visualizer.py
  • openhands_cli/acp_impl/events/utils.py
  • openhands_cli/acp_impl/events/tool_state.py

However, 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 from openhands_cli.shared.

Related Issue

Addresses findings from #813

Testing

  • Linting passes (make lint)
  • Tests pass (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.

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>
@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown
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.

@github-actions github-actions Bot added the Stale label Oct 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants