Skip to content

fix(stores): remove module-level console instances - #822

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

github-actions[bot] wants to merge 1 commit into
mainfrom
fix/code-quality/console-instances

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Replaces module-level Console instances with a factory function that creates console instances on-demand. This improves testability and avoids potential thread safety issues with shared mutable state.

Changes

  • Removed unused stderr_console module-level variable
  • Replaced console module-level variable with _get_console() factory function
  • Updated load_from_disk() to use the factory function

Related Issue

Addresses findings from #819 (Low-Hanging Fruit item #4)

Testing

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

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

This message was generated by an AI agent (OpenHands) on behalf of the user.

Replaces module-level Console instances with a factory function that
creates console instances on-demand. This improves testability and
avoids potential thread safety issues with shared mutable state.

Changes:
- Remove unused stderr_console module-level variable
- Replace console module-level variable with _get_console() factory
- Update load_from_disk() to use the factory function

Addresses item from code quality report.

Closes #819

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