Skip to content

fix(tui): convert COMMANDS list to immutable tuple#767

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
fix/code-quality/immutable-commands
Open

fix(tui): convert COMMANDS list to immutable tuple#767
github-actions[bot] wants to merge 1 commit into
mainfrom
fix/code-quality/immutable-commands

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Converts the module-level COMMANDS list to an immutable tuple to prevent accidental mutation at runtime.

Changes

  • Changed COMMANDS from list to tuple[DropdownItem, ...] in tui/core/commands.py
  • Updated test assertion in test_commands.py to expect tuple instead of list

Related Issue

Addresses findings from #766

Testing

  • Linting passes (make lint)
  • Tests pass (make test)

This PR was automatically generated by the Code Quality Report workflow.

This PR was created by an AI agent (OpenHands) on behalf of the user.

Converts the module-level COMMANDS list to a tuple to prevent accidental
mutation at runtime. Updates test assertion to expect tuple.

Addresses item from code quality report.

Related to #766

Co-authored-by: openhands <openhands@all-hands.dev>
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.

0 participants