Skip to content

fix: update deprecated libtmux API calls#12596

Merged
neubig merged 1 commit intoOpenHands:mainfrom
ankit2235:fix/update-libtmux-deprecated-api
Mar 16, 2026
Merged

fix: update deprecated libtmux API calls#12596
neubig merged 1 commit intoOpenHands:mainfrom
ankit2235:fix/update-libtmux-deprecated-api

Conversation

@ankit2235
Copy link
Copy Markdown
Contributor

Summary of PR

Fixed two outdated function calls in the local runtime that were causing the app to crash on startup.

The libtmux library updated their API and removed some old methods. This PR updates those method calls to use the new ones:

  • session.attached_panesession.active_pane
  • session.kill_session()session.kill()

Without this fix, running make run with RUNTIME=local throws an error and the app won't start.

Demo Screenshots/Videos

N/A - This is a small code fix. The proof is that the app now starts without crashing.

Change Type

  • Bug fix
  • New feature
  • Breaking change
  • Refactor
  • Other (dependency update, docs, typo fixes, etc.)

Checklist

  • I have read and reviewed the code and I understand what the code is doing.
  • I have tested the code to the best of my ability and ensured it works as expected.

Fixes

Resolves startup crash when using local runtime with newer versions of libtmux.

Release Notes

  • Include this change in the Release Notes.

Fixed local runtime startup failure caused by deprecated libtmux API methods.

Replace deprecated libtmux Session methods with their modern equivalents:
- session.attached_pane -> session.active_pane (deprecated in 0.31.0)
- session.kill_session() -> session.kill() (deprecated in 0.30.0)
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 7, 2026

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 Inactive for 40 days label Mar 7, 2026
@neubig
Copy link
Copy Markdown
Contributor

neubig commented Mar 16, 2026

Thank you!

@neubig neubig merged commit 59dd1da into OpenHands:main Mar 16, 2026
16 checks passed
@mamoodi mamoodi added the release:cloud-1.18.0 Released in Cloud 1.18.0 label Mar 26, 2026 — with OpenHands AI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:cloud-1.18.0 Released in Cloud 1.18.0 Stale Inactive for 40 days

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants