Skip to content

Fix pane wait/search correctness issues - #62

Merged
tony merged 3 commits into
mainfrom
issues-55-54-53-wait-search
May 24, 2026
Merged

Fix pane wait/search correctness issues#62
tony merged 3 commits into
mainfrom
issues-55-54-53-wait-search

Conversation

@tony

@tony tony commented May 24, 2026

Copy link
Copy Markdown
Member

Summary

Test Plan

  • rm -rf docs/_build; uv run ruff check . --fix --show-fixes; uv run ruff format .; uv run mypy; uv run py.test --reruns 0 -vvv; just build-docs;

tony added 3 commits May 24, 2026 11:47
why: Long terminal output can wrap across tmux visual rows, causing slow-path search to miss patterns that span the wrap boundary.
what:
- Capture slow-path pane content with join_wrapped=True
- Add a wrap-spanning search_panes regression
- Document the fast-path wrap limitation and changelog fix
why: Some MCP clients do not deliver warning notifications back to callers, so risk-band state needs to be visible in the typed result.
what:
- Add risk_band_warned to WaitForTextResult
- Return the existing trim-risk warning state from wait_for_text
- Cover ordinary and risk-band result paths in tests and docs
why: Pane death or respawn invalidates the content-change baseline even when captured text is unchanged or misleading.
what:
- Share pane lifecycle validation with wait_for_text
- Raise ToolError from wait_for_content_change on death or respawn
- Add lifecycle regression coverage and docs/changelog notes
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.98%. Comparing base (97acc87) to head (ba545e5).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #62      +/-   ##
==========================================
+ Coverage   85.94%   85.98%   +0.04%     
==========================================
  Files          40       40              
  Lines        2440     2448       +8     
  Branches      319      319              
==========================================
+ Hits         2097     2105       +8     
  Misses        260      260              
  Partials       83       83              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tony
tony marked this pull request as ready for review May 24, 2026 16:53
@tony
tony merged commit d0020c4 into main May 24, 2026
9 checks passed
tony added a commit that referenced this pull request May 24, 2026
why: Ship the pane polling correctness fixes from PR #62 as the next alpha release.
what:
- Add the 0.1.0a9 changelog entry for pane search/wait correctness
- Bump package metadata to 0.1.0a9
- Refresh uv.lock for the editable project version
@tony
tony deleted the issues-55-54-53-wait-search branch May 24, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants