mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-08-29 18:31:33 +00:00
fix: guide users to Auto-Tmux when a persisted session expires (#1336)
* fix: guide users to Auto-Tmux when a persisted session expires A timed-out terminal session silently reconnected to a fresh shell, so people running long jobs lost them with no explanation and never learned about Auto-Tmux. Explain the expiry with a one-click Enable Auto-Tmux action, let admins default it for new hosts and tune the persistence timeout from the UI, and move the setting up with copy that says what it does. The global default stays off. * style: format terminal expiry notice
This commit is contained in:
@@ -627,3 +627,17 @@ describe("createHostEditorForm credentialId", () => {
|
||||
expect(createHostEditorForm(null).credentialId).toBe("");
|
||||
});
|
||||
});
|
||||
|
||||
describe("createHostEditorForm auto-tmux", () => {
|
||||
it("inherits the admin default for a new host but keeps an existing host's own choice", () => {
|
||||
expect(createHostEditorForm(null, { autoTmux: true }).autoTmux).toBe(true);
|
||||
expect(createHostEditorForm(null, {}).autoTmux).toBe(false);
|
||||
|
||||
const host = {
|
||||
id: "1",
|
||||
name: "box",
|
||||
terminalConfig: { autoTmux: false },
|
||||
} as unknown as Host;
|
||||
expect(createHostEditorForm(host, { autoTmux: true }).autoTmux).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user