Skip to content

chore: install tmux in Containerfile for worktree session persistence - #136

Merged
c-vigo merged 3 commits into
devfrom
chore/130-install-tmux
Feb 21, 2026
Merged

c-vigo merged 3 commits into
devfrom
chore/130-install-tmux

Conversation

@gerchowl

Copy link
Copy Markdown
Contributor

Description

Install tmux in the container image so that autonomous worktree agents can run in detached tmux sessions that survive Cursor session disconnects. Without tmux, just worktree-start fails the prerequisite check and autonomous TDD workflows cannot complete.

Type of Change

  • feat -- New feature
  • fix -- Bug fix
  • docs -- Documentation only
  • chore -- Maintenance task (deps, config, etc.)
  • refactor -- Code restructuring (no behavior change)
  • test -- Adding or updating tests
  • ci -- CI/CD pipeline changes
  • build -- Build system or dependency changes
  • revert -- Reverts a previous commit
  • style -- Code style (formatting, whitespace)

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

  • Containerfile: Add tmux to the apt-get install block alongside existing system dependencies
  • tests/test_image.py: Add "tmux": "3.3" to EXPECTED_VERSIONS dict
  • tests/test_image.py: Add test_tmux_installed — verifies tmux apt package is installed
  • tests/test_image.py: Add test_tmux_version — verifies tmux -V returns expected version
  • tests/test_image.py: Add test_tmux_detached_session_survives — creates a detached session, verifies it in tmux list-sessions, confirms the background process is running via PID check
  • CHANGELOG.md: Add entry under ## Unreleased → ### Added

Changelog Entry

Added

  • tmux installed in container image for worktree session persistence (#130)
    • Add tmux to the Containerfile apt-get install block
    • Enables autonomous worktree agents to survive Cursor session disconnects

Testing

  • Tests pass locally (just test-image) — 35 passed, 0 failed
  • Manual testing performed (describe below)

Manual Testing Details

$ just test-image
======================== 35 passed in 77.95s (0:01:17) =========================

All 3 new tmux tests pass:

  • test_tmux_installed — confirms host.package("tmux").is_installed
  • test_tmux_version — confirms tmux -V contains 3.3
  • test_tmux_detached_session_survives — creates detached session, verifies via tmux list-sessions and PID liveness check

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

Refs: #130

@gerchowl
gerchowl requested a review from c-vigo as a code owner February 21, 2026 00:27
@gerchowl gerchowl self-assigned this Feb 21, 2026
@gerchowl

Copy link
Copy Markdown
Contributor Author

@c-vigo Can you check what the ci problem is?

@c-vigo
c-vigo merged commit d0b1aca into dev Feb 21, 2026
12 of 13 checks passed
@c-vigo
c-vigo deleted the chore/130-install-tmux branch February 21, 2026 17:59
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.

2 participants