jupyterlab_claude_code_extension 1.1.20 → 1.1.21

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/lib/types.d.ts CHANGED
@@ -3,7 +3,7 @@ export interface ISession {
3
3
  encoded_path: string;
4
4
  session_id: string;
5
5
  name: string;
6
- name_source: 'rename' | 'basename';
6
+ name_source: 'session' | 'basename';
7
7
  summary: string;
8
8
  first_prompt: string;
9
9
  message_count: number;
package/lib/widget.js CHANGED
@@ -527,6 +527,11 @@ export class ClaudeCodeSessionsWidget extends Widget {
527
527
  if (this._presentationMode === 'path') {
528
528
  return this._displayPath(s.project_path) || folder;
529
529
  }
530
+ // Honour the session name Claude records (e.g. a `/rename`); fall back
531
+ // to the folder basename when the backend reports no session name.
532
+ if (s.name_source === 'session' && s.name) {
533
+ return s.name;
534
+ }
530
535
  return folder;
531
536
  }
532
537
  _basename(p) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jupyterlab_claude_code_extension",
3
- "version": "1.1.20",
3
+ "version": "1.1.21",
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/types.ts CHANGED
@@ -3,7 +3,7 @@ export interface ISession {
3
3
  encoded_path: string;
4
4
  session_id: string;
5
5
  name: string;
6
- name_source: 'rename' | 'basename';
6
+ name_source: 'session' | 'basename';
7
7
  summary: string;
8
8
  first_prompt: string;
9
9
  message_count: number;
package/src/widget.ts CHANGED
@@ -622,6 +622,11 @@ export class ClaudeCodeSessionsWidget extends Widget {
622
622
  if (this._presentationMode === 'path') {
623
623
  return this._displayPath(s.project_path) || folder;
624
624
  }
625
+ // Honour the session name Claude records (e.g. a `/rename`); fall back
626
+ // to the folder basename when the backend reports no session name.
627
+ if (s.name_source === 'session' && s.name) {
628
+ return s.name;
629
+ }
625
630
  return folder;
626
631
  }
627
632