feat: hub import action and an explicit marker for unmanaged sessions - #27
Merged
Conversation
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".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two hub improvements.
Import from the hub
ion a running session that isn't in the config runs the same capture asmox import(structure, pane geometry, SSH connections) and returns to a fresh hub with the session now configured. The status line reportsimported <name>, plus the first geometry warning when the capture degraded, or the error if the import failed.ion 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 smallhubNotecarries 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 listalready has an ORIGIN column for this. The hub now uses the same vocabulary: atmuxtag on the list row meta andtmux onlyin the preview title.Testing
TestHubImportKeyandTestHubUnmanagedMarker, written failing first.make testand golangci-lint v2 clean. No new tmux syntax: the import path reusesinspectSessionandappendSessionToConfig, both already covered.Docs: hub key table and origin-marker note in
docs/commands.md, README feature bullet, changelog under Unreleased.