Skip to content

fix(tui): add remove() method to RunnerRegistry for memory cleanup#769

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
fix/code-quality/runner-registry-cleanup
Open

fix(tui): add remove() method to RunnerRegistry for memory cleanup#769
github-actions[bot] wants to merge 1 commit into
mainfrom
fix/code-quality/runner-registry-cleanup

Conversation

@github-actions

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

Copy link
Copy Markdown
Contributor

Summary

Adds a remove() method to RunnerRegistry that allows removing runners from the registry when conversations end. This prevents memory accumulation in long-running sessions.

Changes

  • Added remove(conversation_id: uuid.UUID) method to RunnerRegistry
  • If the removed runner is the current runner, the current reference is also cleared
  • Added comprehensive tests for the new method

Related Issue

Addresses findings from #766

Testing

  • Linting passes (make lint)
  • Tests pass (make test - 1357 tests, including 4 new tests for this feature)

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.

Adds a remove() method to RunnerRegistry that allows removing runners
from the registry when conversations end. This prevents memory
accumulation in long-running sessions.

If the removed runner is the current runner, the current reference
is also cleared.

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