@radnine/claude-session-daemon 0.6.8 → 0.6.9

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/git-reset.js +5 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@radnine/claude-session-daemon",
3
- "version": "0.6.8",
3
+ "version": "0.6.9",
4
4
  "description": "Node.js daemon for managing Claude CLI sessions",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {
package/src/git-reset.js CHANGED
@@ -25,9 +25,12 @@ const EXEC_TIMEOUT = 15000; // 15 seconds per git command
25
25
  async function resetGitState(workingDir, logger) {
26
26
  const results = { stash: false, checkout: false, pull: false };
27
27
 
28
- // Step 1: stash uncommitted changes
28
+ // Step 1: stash TRACKED changes only. We deliberately avoid --include-untracked:
29
+ // vault-style repos (Obsidian notebooks, etc.) routinely hold valuable
30
+ // uncommitted markdown that would otherwise be swept away. If an operator
31
+ // needs a full sweep they can opt out of safe_working_tree per pilot.
29
32
  try {
30
- const { stdout } = await execFileAsync('git', ['stash', '--include-untracked'], {
33
+ const { stdout } = await execFileAsync('git', ['stash'], {
31
34
  cwd: workingDir,
32
35
  timeout: EXEC_TIMEOUT,
33
36
  encoding: 'utf8',