feat: add option to keep screen alive when closing tab

When clicking (x) on a session tab, users now choose:
- Hide Tab (Keep Screen): removes tab but screen session stays alive
- Close & Kill Screen: terminates both tab and screen session

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
arkon
2026-01-19 04:47:48 +01:00
co-authored by Claude Opus 4.5
parent 79c5e4ba09
commit 0245f61c37
5 changed files with 41 additions and 11 deletions
+4 -3
View File
@@ -268,12 +268,13 @@
<button class="modal-close" onclick="app.cancelCloseSession()">&times;</button>
</div>
<div class="modal-body">
<p class="modal-warning-text">This will terminate the Claude session and any running processes.</p>
<p class="modal-session-name" id="closeConfirmSessionName"></p>
<p class="modal-warning-text">Choose how to close this session:</p>
</div>
<div class="form-actions">
<div class="form-actions form-actions-stack">
<button class="btn-toolbar btn-warning" onclick="app.confirmCloseSession(false)" title="Remove tab but keep screen session running">Hide Tab (Keep Screen)</button>
<button class="btn-toolbar btn-danger" onclick="app.confirmCloseSession(true)" title="Terminate the screen session completely">Close & Kill Screen</button>
<button class="btn-toolbar" onclick="app.cancelCloseSession()">Cancel</button>
<button class="btn-toolbar btn-danger" onclick="app.confirmCloseSession()">Close Session</button>
</div>
</div>
</div>