Skip to content

P1.3: Adapter factories accept MultiplexerBackend (multiplexer Phase 1)#427

Merged
takemo101 merged 1 commit intomainfrom
issue-404-factories-accept-multiplexer
May 10, 2026
Merged

P1.3: Adapter factories accept MultiplexerBackend (multiplexer Phase 1)#427
takemo101 merged 1 commit intomainfrom
issue-404-factories-accept-multiplexer

Conversation

@takemo101
Copy link
Copy Markdown
Owner

Summary

Closes #404. Final piece of Phase 1: adapter factories now accept
the abstract MultiplexerBackend interface so any backend
implementing it can be wired in. Phase 1 is now complete; the
public surface still names a tmux-flavoured backend everywhere
that mattered before, with PaneBackend retained as a type-only
alias for in-package consumers.

The const-aliased PaneBackend = TmuxBackend was dropped (it
shadowed the type alias when TypeScript resolved annotations like
panes: PaneBackend). Construction sites use new TmuxBackend()
directly.

Test plan

  • 870/870 tests across all packages
  • Full typecheck clean (adapters, mcp, cli, core, store,
    project-config, agent-profiles)
  • No behaviour change — refactor only

Phase 1 status after this PR

Swap factory parameter types from PaneBackend to MultiplexerBackend
so any backend implementing the interface (TmuxBackend today,
ZellijBackend in Phase 3) can be wired into the adapter registry.
The PaneBackend type alias is retained as type-only (the const
alias was dropped because it shadowed the type alias under
TypeScript's annotation resolution). Construction sites switch to
new TmuxBackend() directly.

Tests: 870/870 across all packages pass; full typecheck clean
(adapters / mcp / cli / core / store / project-config / agent-profiles).
@takemo101 takemo101 merged commit f527f95 into main May 10, 2026
@takemo101 takemo101 deleted the issue-404-factories-accept-multiplexer branch May 10, 2026 07:25
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.

P1.3: Adapter factories accept MultiplexerBackend (multiplexer Phase 1)

1 participant