Skip to content

test(remote): isolate tmux stale-surface fixture - #16566

Merged
teamleaderleo merged 1 commit into
mainfrom
fix/tmux-stale-inherited-surface-test
Oct 2, 2026
Merged

teamleaderleo merged 1 commit into
mainfrom
fix/tmux-stale-inherited-surface-test

Conversation

@teamleaderleo

@teamleaderleo teamleaderleo commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

TestTmuxStaleInheritedSurfaceCannotRetarget inherited the caller's ambient TMUX_PANE. When the test ran from a tmux session, that unrelated pane did not match the fixture target, so the resolver selected the fixture's focused surface and the test failed with an unexpected surface.send_text or surface.close call.

Fix

Set TMUX_PANE to the fixture pane alongside CMUX_PANE_ID, keeping the stale-surface case deterministic and preventing parent-session state from changing target resolution.

Verification

  • go test ./cmd/cmuxd-remote -run '^TestTmuxStaleInheritedSurfaceCannotRetarget$' -count=1
  • git diff --check

— Teakettle g2 💾


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.


Summary by cubic

Isolates TestTmuxStaleInheritedSurfaceCannotRetarget from the caller's ambient tmux session so the fixture's focused surface is always selected deterministically.

Sets TMUX_PANE to the fixture pane alongside CMUX_PANE_ID, preventing parent-session state from changing target resolution and making the stale-surface case stable when run from tmux.

Written for commit 1534c58. Summary will update on new commits.

Review in cubic

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 2, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 11 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository: manaflow-ai/cmux/.coderabbit.yaml

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 0e89286b-1675-4bc7-baed-e5a18c88f686

📥 Commits

Reviewing files that changed from the base of the PR and between 8b8762a and 1534c58.

📒 Files selected for processing (1)
  • daemon/remote/cmd/cmuxd-remote/review_regressions_test.go
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

You’re at about 90% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact contact@cubic.dev.

Re-trigger cubic

@teamleaderleo
teamleaderleo merged commit 6c22525 into main Oct 2, 2026
96 of 99 checks passed
@teamleaderleo
teamleaderleo deleted the fix/tmux-stale-inherited-surface-test branch October 2, 2026 00:47
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Merge receipt for 1534c58ff2: every check was green at merge (12 verified; 14 skipped by policy). Full suite runs on main after merge.

rustybret pushed a commit to rustybret/bmux that referenced this pull request Oct 2, 2026
0bfd027 test(cloud): fix the Cloud header and moved-panel focus tests that never ran (manaflow-ai#16539)
c5c4345 localization: accept numbered placeholders in any order (manaflow-ai#16376)
456edeb fix(settings): replace custom sidebar mockups with real previews (manaflow-ai#16569)
98dc3ab Prototype: cmux Cloud as a remote MCP server (manaflow-ai#16568)
6c22525 test(remote): isolate tmux stale-surface fixture (manaflow-ai#16566)
3ec9918 Re-land "fix(coderouter): initialize Cloud VM account pools (manaflow-ai#16397)" (manaflow-ai#16572)
2b895a5 Fix browser paste routing with terminal text box beta (manaflow-ai#6380) (manaflow-ai#16560)
2bd3455 localization: check Swift defaultValue literals against their catalog en value (manaflow-ai#16396)
c43086e test(cli): expect --mark-read to mark every listed inbox message (manaflow-ai#16537)
fcda4f0 test(feed): wait for zero-wait Codex permission acceptance before checking attention (manaflow-ai#16536)
7d57a03 fix(remote): evict stale persistent SSH bridge leases (manaflow-ai#16558)
d630cb8 docs: add protected-folder diagnostics for tmux sessions (manaflow-ai#12219)
7dceaac test: create cwd fixtures that new terminals now resolve on disk (manaflow-ai#16538)
28cc575 docs: cover surface resume binding CLI contract (manaflow-ai#16473)
5c7dca1 Fix idle zsh PR probes triggering chpwd hooks (manaflow-ai#16553)

# Conflicts:
#	.github/workflows/ci-guards.yml
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