Skip to content

Concept: Attach to an existing workspace - #163

Draft
tony wants to merge 2 commits into
masterfrom
concept/workspace-attach-existing
Draft

tony wants to merge 2 commits into
masterfrom
concept/workspace-attach-existing

Conversation

@tony

@tony tony commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Refs #161 and #144.

What changed, and why:

Add libtmux-workspace attach --socket PATH SESSION_ID for the recovery case where a workspace already exists and the operator has its session ID. The command accepts a real terminal, resolves the exact ID on the selected daemon, and returns on detach. The existing load --attach path has its own issue.

Checks run:

  • Workspace CLI integration on Ruby 3.3.12 with tmux 3.3a and 3.8, including native and Ruby attachment controls, exact session selection, detach and rejection of invalid inputs.
  • Installed the built workspace gem in an isolated gem home and ran controlling-PTY tests through its command on both tmux versions.
  • Workspace CLI and README unit checks.
  • scripts/check outer on Ruby 4.0.7 and tmux 3.8 (152s). Unit, integration, installed-artifact, RBS and rendered documentation checks passed.

Tool use:

Codex and Sol 6.2 built and adversarially reviewed the command and tested the terminal path. Codex checked session selection, subprocess ownership, documentation and the installed-command results.

tony added 2 commits November 30, 2026 19:43
why: An operator can have a workspace session ID after a load and
still need to start its terminal client.

what:
- Attach the current terminal to an exact ID on an explicit socket.
- Test the command with a controlling terminal and a decoy server.
why: The contents link and generated API reference need to point
to the updated workspace documentation and CLI.

what:
- Keep the existing load attachment anchor.
- Add a contents link for standalone attachment.
- Refresh the API source destinations.
@tony
tony deployed to docs-preview December 1, 2026 04:12 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
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