Skip to content

server(feat): Discover bound daemon features - #114

Draft
tony wants to merge 3 commits into
settings-catalogfrom
feat/public-capabilities-20261115
Draft

tony wants to merge 3 commits into
settings-catalogfrom
feat/public-capabilities-20261115

Conversation

@tony

@tony tony commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Lua and Neovim callers can inspect named feature requirements and support decisions for the tmux release checked when they connected.

Summary

  • Add Request-returning Server:capabilities() over the shared feature registry.
  • Expose copied feature metadata, release decisions and active workarounds.
  • Add an owned-server example, public annotations and editor completion checks.

Discovery uses the verified connection generation and sends no tmux command. A changed pinned path returns stale_generation. Named and default sockets report the original bound release until the runtime observes a change. Connect again to measure the current daemon. Saved reports remain historical after a daemon change or handle close. Editing their nested metadata cannot change command guards or another report.

Both runtime adapters use the same core Request operation. Release ordering and command admission continue to use the existing registry and parser. The core gains no runtime dependency.

Test plan

  • Release, patch and candidate boundaries, copied metadata and closed handles.
  • Capability reports and rejection of a replaced pinned socket on tmux 3.3a and 3.8.
  • A tmux 3.8 client connected to a 3.3a daemon, with feature admission based on the daemon release.
  • Verify that named and pinned reports start no extra tmux client.
  • Current outer gate, isolated rocks and complete API examples.
  • Lua 5.1, tmux 3.3a and Neovim 0.10.0 focused checks.
  • LuaLS diagnostics, native API export and editor completion.
  • Hosted checks for the revised head.

The local outer gate took 69.63 seconds.

This delivers the public discovery prerequisite in #104. Managed Program ownership, completion, final drain and crash recovery remain under #107. Existing lifecycle draft #27 stays separate.

Closes #104. Refs #107.

Selecting tmux

Run examples/api/capabilities.lua with TMUX_BIN set to an absolute path to try a specific tmux release. This checkout uses /usr/bin/tmux by default. The local rehearsal tested runtime lookup from #179 on tmux 3.3a and 3.8 and verified that an explicit TMUX_BIN selected the named executable. Runtime PATH support.

@tony
tony deployed to docs-preview November 16, 2026 04:30 — with GitHub Actions Active
@tony
tony force-pushed the feat/public-capabilities-20261115 branch from 0e55e83 to 43b4d84 Compare November 16, 2026 08:39
@tony
tony deployed to docs-preview November 16, 2026 08:52 — with GitHub Actions Active
@tony
tony force-pushed the feat/public-capabilities-20261115 branch from 43b4d84 to 96ff603 Compare November 16, 2026 08:56
@tony
tony deployed to docs-preview November 16, 2026 09:03 — with GitHub Actions Active
@tony
tony force-pushed the feat/public-capabilities-20261115 branch from 96ff603 to 446f323 Compare December 5, 2026 18:10
tony added 3 commits December 6, 2026 09:30
why:
Callers need the daemon's feature requirements before sending a
command that depends on them.

what:
- Resolve public capability reports from the checked connection.
- Recheck pinned socket identity without sending a tmux command.
- Copy registry entries and exercise both runtime adapters.
why:
Callers need a concrete feature check and the lifetime of its result.

what:
- Document what the report says about the bound tmux release.
- Add the runnable example, API export and editor completion.
why:
Callers can test feature support before invoking an operation.

what:
- Add the new Server request under Unreleased.
@tony
tony changed the base branch from master to settings-catalog December 6, 2026 15:31
@tony
tony force-pushed the settings-catalog branch from 4562d8f to 399b46a Compare December 6, 2026 15:31
@tony
tony force-pushed the feat/public-capabilities-20261115 branch from 446f323 to fac0717 Compare December 6, 2026 15:31

This branch was successfully deployed

1 active (outdated) deployment
docs-preview — 96ff603c Deployed Nov 16, 2026 by tony via publish (pr-114, pr, false, docs-preview, true) / publish #390
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.

Expose the capability map through the public API

1 participant