diff --git a/docs/screenshots/save-and-switch.png b/docs/screenshots/save-and-switch.png index 108dd1b6..a438553d 100644 Binary files a/docs/screenshots/save-and-switch.png and b/docs/screenshots/save-and-switch.png differ diff --git a/docs/user-manual.md b/docs/user-manual.md index 8bedc0ef..e510032b 100644 --- a/docs/user-manual.md +++ b/docs/user-manual.md @@ -545,7 +545,10 @@ While a session is running, you can close it and, optionally, open a different o **Close button (⏻) in the status bar** → opens the **Save & Switch** dialog: - **Session name field** — pre-filled with the current session name. Giving a session a descriptive name makes it easier to find it later in the session list when using "Resume specific". -- **Mode panel** — choose what happens next: **Close only** (just close, don't open another session) / New session / Continue last / Resume specific. For Resume specific, a session table is shown — see [Session selector panel](#session-selector-panel) for details. +- **Mode panel** — choose what happens next: + - **Close only** — stop the session and close the tab. The conversation is saved and can be resumed later. + - **Restart Advanced...** — stop the session and return to the session selector panel in the same tab, allowing full reconfiguration (directory, profile, mode) before starting a new session. + - **New session** / **Continue last** / **Resume specific** — stop and immediately start another session in the same tab. For Resume specific, a session table is shown — see [Session selector panel](#session-selector-panel) for details. - Click **OK** to close (and optionally rename) the session and open the next one as chosen. When "Resume specific" is selected, you can also double-click a row in the session table to confirm immediately. ![Save & Switch dialog](screenshots/save-and-switch.png) @@ -566,7 +569,8 @@ While a session is running, you can close it and, optionally, open a different o | Save current session and start a fresh one (can return later) | **Via ⏻:** optionally fill in a session name → New session → OK
**Via context menu:** right-click input area → Start New Session (no rename option) | | Start fresh without being able to return to current context | Type `/clear` in the input area and send it | | Switch to a specific past session | ⏻ → Resume specific → pick session → OK (or double-click the row)
or: right-click input area → Switch to Session… → pick session | -| Close without opening another session | × on the tab
or: ⏻ → Close only → OK
or: ⏻ → fill in a session name → Close only → OK | +| Close tab, keep session for later | × on the tab
or: ⏻ → Close only → OK
or: ⏻ → fill in a session name → Close only → OK | +| Stop session, reconfigure everything, then start | ⏻ → Restart Advanced... → OK — returns to the selector panel in the same tab | ### Renaming a session diff --git a/pom.xml b/pom.xml index aa9791eb..ab4e7cad 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ io.github.nbclaudecodegui netbeans-claude-code-gui - 0.21.18-SNAPSHOT + 0.21.22-SNAPSHOT nbm Netbeans Claude Code GUI NetBeans plugin that provides a GUI for Claude Code CLI — run claude code sessions directly inside the IDE. diff --git a/src/main/java/io/github/nbclaudecodegui/model/SessionMode.java b/src/main/java/io/github/nbclaudecodegui/model/SessionMode.java index c401aee3..9bf4fc81 100644 --- a/src/main/java/io/github/nbclaudecodegui/model/SessionMode.java +++ b/src/main/java/io/github/nbclaudecodegui/model/SessionMode.java @@ -6,6 +6,9 @@ *