jupyterlab_claude_code_extension 1.0.29 → 1.0.32

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/widget.js CHANGED
@@ -546,14 +546,14 @@ export class ClaudeCodeSessionsWidget extends Widget {
546
546
  }
547
547
  else {
548
548
  for (const item of items) {
549
- list.appendChild(this._renderRow(item));
549
+ list.appendChild(this._renderRow(item, key));
550
550
  }
551
551
  }
552
552
  section.appendChild(list);
553
553
  }
554
554
  this._bodyEl.appendChild(section);
555
555
  }
556
- _renderRow(session) {
556
+ _renderRow(session, sectionKey) {
557
557
  const row = document.createElement('div');
558
558
  row.className = 'jp-ClaudeSessionsPanel-row';
559
559
  row.title = this._buildRowTooltip(session);
@@ -582,7 +582,9 @@ export class ClaudeCodeSessionsWidget extends Widget {
582
582
  name.className = 'jp-ClaudeSessionsPanel-name';
583
583
  name.textContent = this._lookupName(session);
584
584
  row.appendChild(name);
585
- if (session.favourite) {
585
+ // No star in the Favourites section - every row there is a favourite
586
+ // by definition; stars are an indicator only useful in Recent/All.
587
+ if (session.favourite && sectionKey !== 'favourites') {
586
588
  const star = document.createElement('span');
587
589
  star.className = 'jp-ClaudeSessionsPanel-favStar';
588
590
  star.title = 'Favourite';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jupyterlab_claude_code_extension",
3
- "version": "1.0.29",
3
+ "version": "1.0.32",
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
@@ -649,7 +649,7 @@ export class ClaudeCodeSessionsWidget extends Widget {
649
649
  list.appendChild(empty);
650
650
  } else {
651
651
  for (const item of items) {
652
- list.appendChild(this._renderRow(item));
652
+ list.appendChild(this._renderRow(item, key));
653
653
  }
654
654
  }
655
655
  section.appendChild(list);
@@ -658,7 +658,7 @@ export class ClaudeCodeSessionsWidget extends Widget {
658
658
  this._bodyEl.appendChild(section);
659
659
  }
660
660
 
661
- private _renderRow(session: ISession): HTMLDivElement {
661
+ private _renderRow(session: ISession, sectionKey: SectionKey): HTMLDivElement {
662
662
  const row = document.createElement('div');
663
663
  row.className = 'jp-ClaudeSessionsPanel-row';
664
664
  row.title = this._buildRowTooltip(session);
@@ -689,7 +689,9 @@ export class ClaudeCodeSessionsWidget extends Widget {
689
689
  name.textContent = this._lookupName(session);
690
690
  row.appendChild(name);
691
691
 
692
- if (session.favourite) {
692
+ // No star in the Favourites section - every row there is a favourite
693
+ // by definition; stars are an indicator only useful in Recent/All.
694
+ if (session.favourite && sectionKey !== 'favourites') {
693
695
  const star = document.createElement('span');
694
696
  star.className = 'jp-ClaudeSessionsPanel-favStar';
695
697
  star.title = 'Favourite';