cc-sidebar 0.1.1 → 0.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-sidebar",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Visual sidebar for managing todos, tasks, and context alongside Claude Code",
5
5
  "author": "Tyler Nishida",
6
6
  "license": "MIT",
package/src/cli.ts CHANGED
@@ -24,7 +24,7 @@ import { RawSidebar } from "./components/RawSidebar";
24
24
  program
25
25
  .name("cc-sidebar")
26
26
  .description("Visual sidebar for Claude Code")
27
- .version("0.1.1");
27
+ .version("0.1.2");
28
28
 
29
29
  // Show command - render sidebar in current terminal
30
30
  program
@@ -8,6 +8,7 @@ import {
8
8
  getTasks,
9
9
  getStatusline,
10
10
  getClaudeTodos,
11
+ getEffectiveCwd,
11
12
  addTask,
12
13
  updateTask,
13
14
  removeTask,
@@ -956,20 +957,15 @@ SCRIPT
956
957
  // Header padding
957
958
  lines.push(bgLine);
958
959
 
959
- // Repo and branch at top (from statusline if available, else fallback)
960
- const { statusline } = this.state;
961
- let branch = statusline?.branch || '';
962
- let repo = statusline?.repo || '';
963
- if (!branch) {
964
- try {
965
- branch = execSync('git rev-parse --abbrev-ref HEAD 2>/dev/null', { encoding: 'utf8' }).trim();
966
- } catch {}
967
- }
968
- if (!repo) {
969
- const cwd = process.cwd();
970
- const parts = cwd.split('/').filter(Boolean);
971
- repo = parts[parts.length - 1] || cwd;
972
- }
960
+ // Repo and branch at top (always computed locally per-instance)
961
+ let branch = '';
962
+ let repo = '';
963
+ try {
964
+ branch = execSync('git rev-parse --abbrev-ref HEAD 2>/dev/null', { encoding: 'utf8' }).trim();
965
+ } catch {}
966
+ const cwd = getEffectiveCwd();
967
+ const parts = cwd.split('/').filter(Boolean);
968
+ repo = parts[parts.length - 1] || cwd;
973
969
  const branchDisplay = branch ? `${branch}` : '';
974
970
  const repoDisplay = repo ? `${repo}` : '';
975
971
  const headerContent = branchDisplay && repoDisplay