Commit f9e648e
fix: resolve symlinks when looking up Claude session files (#51)
* fix: resolve symlinks when looking up Claude session files
When a project is added via a symlink path (e.g. ~/obsidian pointing to
an iCloud Drive vault), Deckard stores the literal symlink path while
Claude Code CLI resolves symlinks before creating session directories.
This path mismatch causes ContextMonitor and QuotaMonitor to miss the
JSONL session files, so model/context info is absent from the sidebar.
Resolve symlinks using NSString.resolvingSymlinksInPath at the three
lookup sites before encoding the project path to a directory name.
Fixes #45
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
* fix: extract shared helper and fix missed session-resume path
Add String.claudeProjectDirName that resolves symlinks before encoding
the project path, replacing the inline resolve+encode at all 4 call
sites. Also fixes the missed fourth site in DeckardWindowController
where session resume would silently fail for symlinked projects.
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>1 parent 8c50e6a commit f9e648e
File tree
3 files changed
+12
-4
lines changed- Sources
- Detection
- Window
3 files changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
3 | 11 | | |
4 | 12 | | |
5 | 13 | | |
| |||
34 | 42 | | |
35 | 43 | | |
36 | 44 | | |
37 | | - | |
| 45 | + | |
38 | 46 | | |
39 | 47 | | |
40 | 48 | | |
| |||
93 | 101 | | |
94 | 102 | | |
95 | 103 | | |
96 | | - | |
| 104 | + | |
97 | 105 | | |
98 | 106 | | |
99 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
618 | 618 | | |
619 | 619 | | |
620 | 620 | | |
621 | | - | |
| 621 | + | |
622 | 622 | | |
623 | 623 | | |
624 | 624 | | |
| |||
0 commit comments