Skip to content

Concept: Preview owned terminal programs in Core and Async - #166

Merged
tony merged 2 commits into
masterfrom
concept/owned-terminal-program
Dec 5, 2026
Merged

tony merged 2 commits into
masterfrom
concept/owned-terminal-program

Conversation

@tony

@tony tony commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Refs #122

What changed and why

Core and Async can start a terminal program on a private daemon or a
caller-owned tmux server. The program owner accepts input and resize
requests and lets callers wait independently for the exit code or
signal. It retains a bounded final screen and closes its owned
resources through the block form or explicit close.

Owned programs require tmux 3.7 or newer. The existing MCP capability
report shows program availability alongside the existing tool policy.
The MCP interface for starting, sending input to, and waiting on
arbitrary host programs remains tracked by #122.

The pane text wait from #190 uses the same daemon-loss classifier as
the owned program. The migration example passes its UTF-8 diagnostic as
data so the copied worker reports the expected failure in the C locale.

Checks run

  • With Ruby 4.0.7 and tmux 3.7 in the C locale, both examples printed
    their expected results and the installed consumer passed four tests
    and 330 assertions in 21.68 s. With tmux 3.6, one case and 12
    assertions confirmed that both Core and Async refused before launch.
  • Before sharing the classifier, four existing text-wait cases failed.
    They cover a stopped control client, distinct pane and daemon
    endings, removal of the last pane on a live server, and preserving
    the last complete screen after a failed capture. The focused reruns
    passed all 17 cases on tmux 3.3a and 3.8 with zero skips.
  • The focused program suite ran 32 cases with 166 assertions on tmux
    3.3a and 32 cases with 214 assertions on tmux 3.8. All cases ran.
  • The exact Linux matrix with Ruby 4.0.7 passed 364 unit, 341 native,
    and eight installed tests in each cell, with zero skips. The tmux
    3.3a cell took 117.76 s and the 3.8 cell took 120.38 s. All 181
    documentation pages rendered and passed local link checks.
  • A separate documentation-export check run entirely in the C locale
    also failed on the prior merged Ruby source. The normal matrix and
    the explicit C-locale installed consumer exercise their own paths.

Tool use

Codex and Sol 6.2 developed and checked the original preview. Codex
replayed the scoped Core and Async work, checked its dependencies with
normal native and installed tests, and verified the documentation.

@tony
tony deployed to docs-preview December 1, 2026 03:44 — with GitHub Actions Active
@tony
tony force-pushed the concept/owned-terminal-program branch from 46c0973 to a330e85 Compare December 5, 2026 11:12
tony added 2 commits December 5, 2026 05:41
why: Callers need one owner for application completion, terminal
output, input, and cleanup.

what: Share the supervised program owner across Core and Async.
Document the bound daemon capability and verify terminal use.
Share daemon-loss classification with pane text waits.
Pass the sample migration diagnostic as literal data.
why: Readers need to know which tmux release supports the new Core
and Async program owner.

what: Record launch, input, and completion in the unreleased
changelog.
@tony
tony force-pushed the concept/owned-terminal-program branch from a330e85 to ac7e40d Compare December 5, 2026 11:46
@tony
tony marked this pull request as ready for review December 5, 2026 11:50
@tony
tony merged commit 5ae5321 into master Dec 5, 2026
12 checks passed
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