Skip to content

fix: honor "save + start now" in the editor wizard; hub ctrl+e feedback - #26

Merged
bthall merged 2 commits into
mainfrom
fix/start-after-create-and-hub-edit-feedback
Jul 23, 2026
Merged

fix: honor "save + start now" in the editor wizard; hub ctrl+e feedback#26
bthall merged 2 commits into
mainfrom
fix/start-after-create-and-hub-edit-feedback

Conversation

@bthall

@bthall bthall commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Summary

Two UX fixes from this morning's session, plus a README pass.

Save + start now actually starts

Creating a session through the editor's embedded add wizard (mox edit then a) and choosing "save + start now" silently downgraded to a plain draft: nothing was written until s, and the session never started at all.

The choice now jumps straight into the save pipeline (diff preview, Enter to write), and a successful save starts the session detached, same semantics as the hub's S. The status line reports the outcome: saved + started <name> (detached), a start failure with the error, or start skipped: tmux unavailable. The start hook builds a fresh manager over the post-save config, since saves replace st.cfg.

Hub ctrl+e feedback

ctrl+e in the hub only works on configured sessions, but on a tmux-only session it did nothing, with no feedback. Since the hub sorts running sessions first, an unmanaged session is often what's highlighted, and the key read as dead. It now reports <name> is not in the config, matching what S already did.

README

  • All screenshots render at the same 850px width (list was 700).
  • Reworked the intro to describe what mox is today and cleaned up punctuation throughout.

Testing

  • New model tests: TestEditorWizardSaveStart, TestEditorWizardSaveStartFailure, TestEditorWizardSaveStartNoTmux, plus an assertion on the ctrl+e status in TestHubAttachAndEdit. All were written failing first.
  • make test and golangci-lint run (v2) are clean. No new tmux syntax; the start path reuses Manager.Create, which the hub's S already exercises.

bthall added 2 commits July 23, 2026 09:27
The embedded add wizard offered "save + start now" but the editor
silently downgraded it to a plain draft: nothing started, even after
saving. The choice now jumps straight into the save pipeline (diff ->
write) with the draft marked to start, and a successful save starts the
session detached via a fresh manager over the post-save config. The
status line reports saved + started, a start failure, or a skipped
start when tmux is unavailable.

Hub: ctrl+e on a session that is not in the config was a silent no-op,
which reads as a dead key when the highlighted session is tmux-only.
It now reports "<name> is not in the config", matching S.
The list screenshot rendered at 700px next to the 850px hub and editor
shots. All three are 850 now. Reworked the intro to cover what mox is
today (config-defined sessions, ad-hoc sessions, the hub) and cleaned
the punctuation throughout.
@bthall
bthall merged commit 5863dda into main Jul 23, 2026
5 checks passed
@bthall
bthall deleted the fix/start-after-create-and-hub-edit-feedback branch July 23, 2026 13:30
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