Skip to content

test(tmx): wait for the pane process before reading its directory - #120

Merged
0xA3B merged 1 commit into
mainfrom
fix/tmx-test-pane-path
Nov 11, 2026
Merged

0xA3B merged 1 commit into
mainfrom
fix/tmx-test-pane-path

Conversation

@0xA3B

@0xA3B 0xA3B commented Nov 11, 2026

Copy link
Copy Markdown
Owner

CI's Checks job fails on every branch since GitHub moved ubuntu-latest to ubuntu-26.04, which
ships tmux 3.6a. test_directory_names_are_distinct_and_do_not_expand_tmux_formats read
#{pane_current_path} right after creating a session. tmux reads that value from the pane's
process. On the new runner the process had not started in its directory yet, so tmux reported the
server's working directory, the repository root.

The test now polls for up to five seconds until the pane reports its session directory. If the wait
runs out, the assertion message includes tmux's pane_start_path, the pane's command, and the
process's real working directory from /proc, so a real behavior change is distinguishable from a
slow start.

A manually dispatched CI run on this branch passed on ubuntu-26.04:
https://github.com/0xA3B/dotfiles/actions/runs/42932655568

@0xA3B
0xA3B merged commit 389a6db into main Nov 11, 2026
4 checks passed
@0xA3B
0xA3B deleted the fix/tmx-test-pane-path branch November 11, 2026 00:39
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.

1 participant