jupyterlab_claude_code_extension 1.2.19 → 1.2.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/widget.js +10 -0
- package/package.json +1 -1
- package/src/widget.ts +12 -0
package/README.md
CHANGED
|
@@ -29,7 +29,7 @@ Chat-panel extensions re-implement the agent loop and trail the real tool. This
|
|
|
29
29
|
- **Live indicator** - a green dot marks sessions that are currently running somewhere
|
|
30
30
|
- **One-click resume** - click a row to jump back into that session in a terminal. If a terminal for the project is already open, it's reused instead of duplicated
|
|
31
31
|
- **Favorites** - star projects you keep coming back to via the right-click menu
|
|
32
|
-
- **Remove** - drop a project's Claude history from the panel via the right-click menu; the history folder is moved to the trash (it honours JupyterLab's "move files to trash" setting), not deleted permanently
|
|
32
|
+
- **Remove** - drop a project's Claude history from the panel via the right-click menu; a confirmation dialog names the project and warns it removes the whole project and all its conversations before anything is touched, then the history folder is moved to the trash (it honours JupyterLab's "move files to trash" setting), not deleted permanently
|
|
33
33
|
- **Clean up parallel sessions** - when a project has accumulated extra sessions beyond the main one, a right-click menu item (showing the count in brackets) removes them all, keeping only the main session; removed files honour the same trash setting
|
|
34
34
|
- **Conversation switcher** - a right-click "Switch and Manage Sessions" submenu lists a project's other conversations by name and short session id, e.g. `home (3f2a1b9c)`, with last-activity time; pick one and it becomes the row's current conversation - the next click resumes exactly that one. The submenu shows the 5 most recent; "Manage Sessions..." opens a searchable popup over the full list where conversations can also be deleted - select one, many, or all via checkboxes, then confirm with a two-step Delete button (removed files honour the trash setting). Rows with multiple conversations show a branch icon with the count after the name
|
|
35
35
|
- **Branch session** - fork the current conversation into a new named session via the right-click menu (normal or skip-permissions mode); uses Claude's native `--fork-session`, opens in a new terminal, the chosen name is stamped automatically, and the fork becomes the row's current conversation
|
package/lib/widget.js
CHANGED
|
@@ -331,6 +331,16 @@ export class ClaudeCodeSessionsWidget extends Widget {
|
|
|
331
331
|
}
|
|
332
332
|
async _remove(session) {
|
|
333
333
|
var _a;
|
|
334
|
+
const name = this._lookupName(session);
|
|
335
|
+
const confirm = await showDialog({
|
|
336
|
+
title: 'Remove from Claude',
|
|
337
|
+
body: `Remove "${name}" from Claude? This deletes the entire Claude ` +
|
|
338
|
+
'project and every conversation it holds. This cannot be undone.',
|
|
339
|
+
buttons: [Dialog.cancelButton(), Dialog.warnButton({ label: 'Remove' })]
|
|
340
|
+
});
|
|
341
|
+
if (!confirm.button.accept) {
|
|
342
|
+
return;
|
|
343
|
+
}
|
|
334
344
|
this._removingPaths.add(session.encoded_path);
|
|
335
345
|
this._render();
|
|
336
346
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jupyterlab_claude_code_extension",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.20",
|
|
4
4
|
"description": "Browse, resume, and manage your Claude Code CLI sessions from a JupyterLab side panel. One click reactivates the right terminal - no duplicate tabs, live remote-control indicator, and favourites for the projects you keep coming back to.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
package/src/widget.ts
CHANGED
|
@@ -407,6 +407,18 @@ export class ClaudeCodeSessionsWidget extends Widget {
|
|
|
407
407
|
}
|
|
408
408
|
|
|
409
409
|
private async _remove(session: ISession): Promise<void> {
|
|
410
|
+
const name = this._lookupName(session);
|
|
411
|
+
const confirm = await showDialog({
|
|
412
|
+
title: 'Remove from Claude',
|
|
413
|
+
body:
|
|
414
|
+
`Remove "${name}" from Claude? This deletes the entire Claude ` +
|
|
415
|
+
'project and every conversation it holds. This cannot be undone.',
|
|
416
|
+
buttons: [Dialog.cancelButton(), Dialog.warnButton({ label: 'Remove' })]
|
|
417
|
+
});
|
|
418
|
+
if (!confirm.button.accept) {
|
|
419
|
+
return;
|
|
420
|
+
}
|
|
421
|
+
|
|
410
422
|
this._removingPaths.add(session.encoded_path);
|
|
411
423
|
this._render();
|
|
412
424
|
try {
|