Skip to content

feat: hub import action and an explicit marker for unmanaged sessions - #27

Merged
bthall merged 1 commit into
mainfrom
feat/hub-import-and-origin-marker
Jul 23, 2026
Merged

feat: hub import action and an explicit marker for unmanaged sessions#27
bthall merged 1 commit into
mainfrom
feat/hub-import-and-origin-marker

Conversation

@bthall

@bthall bthall commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Summary

Two hub improvements.

Import from the hub

i on a running session that isn't in the config runs the same capture as mox import (structure, pane geometry, SSH connections) and returns to a fresh hub with the session now configured. The status line reports imported <name>, plus the first geometry warning when the capture degraded, or the error if the import failed. i on a configured session reports that it's already in the config.

Plumbing note: the import runs between hub visits in runPicker's loop (same pattern as the editor handoff), so the reloaded config and manager always agree. A small hubNote carries the result into the next hub's status line.

Unmanaged sessions are visibly marked

Configured vs tmux-only sessions were only distinguishable by name color (green vs yellow), which is easy to miss. mox list already has an ORIGIN column for this. The hub now uses the same vocabulary: a tmux tag on the list row meta and tmux only in the preview title.

Testing

  • New model tests TestHubImportKey and TestHubUnmanagedMarker, written failing first.
  • make test and golangci-lint v2 clean. No new tmux syntax: the import path reuses inspectSession and appendSessionToConfig, both already covered.

Docs: hub key table and origin-marker note in docs/commands.md, README feature bullet, changelog under Unreleased.

i on a running session that isn't in the config hands off to the same
capture as mox import, then returns to a fresh hub with the session
configured and a status-line result (including the first geometry
warning when capture degraded). i on a configured session reports that
it's already in the config.

Unmanaged sessions were only distinguishable by name color, which is
easy to miss. The list row now carries a "tmux" tag (mox list's ORIGIN
vocabulary) and the preview title says "tmux only".
@bthall
bthall merged commit 0395421 into main Jul 23, 2026
5 checks passed
@bthall
bthall deleted the feat/hub-import-and-origin-marker branch July 23, 2026 14:03
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