cc-sessions 1.4.1 → 1.4.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/bin/cc-bookmark +9 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cad93912f48c81f33e5532c4a6015164d192899ba9e0bcaaa6a434270e99f881
|
|
4
|
+
data.tar.gz: b3600372722bcd711e490dacbb52e298cb45f1ffc7438c47bbae87dad0d17088
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3f575d1ae31c07665d31b1e31ae25f5bf509bc3a5c23f5598d44d9720d7e870cbc0e15ecb55a2c2ad34ac399bff45bf5bfb97688d02ba2cb5df10e0b79feb1f7
|
|
7
|
+
data.tar.gz: 8fb66ea0011e696e15161e7e3dbdf2a13b83dfcc4c3abba8ab8148d8d400d208c4bcfba4fce580aae05c4a0855ad3165290e98807fe1843fd802aa320f65f81e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.4.2] - 2026-03-03
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- `cc-bookmark` now uses the bookmark's stored path (not bash cwd) for session detection when `CC_SESSION_ID` is set — prevents migration to wrong project when cwd drifts during a session
|
|
7
|
+
|
|
3
8
|
## [1.4.1] - 2026-03-03
|
|
4
9
|
|
|
5
10
|
### Fixed
|
data/bin/cc-bookmark
CHANGED
|
@@ -103,8 +103,16 @@ end
|
|
|
103
103
|
FileUtils.mkdir_p(CONFIG_DIR) unless Dir.exist?(CONFIG_DIR)
|
|
104
104
|
|
|
105
105
|
bookmarks = load_bookmarks
|
|
106
|
-
cwd = resolve_session_dir(Dir.pwd)
|
|
107
106
|
original_id = ENV['CC_SESSION_ID'] # Set by `cc` wrapper — reliable
|
|
107
|
+
|
|
108
|
+
# Use the bookmark's stored path (not Dir.pwd) when CC_SESSION_ID is set,
|
|
109
|
+
# because bash cwd can drift to other directories during the session.
|
|
110
|
+
if original_id
|
|
111
|
+
orig_entry = bookmarks['sessions'][original_id]
|
|
112
|
+
cwd = resolve_session_dir(orig_entry['path']) if orig_entry
|
|
113
|
+
end
|
|
114
|
+
cwd ||= resolve_session_dir(Dir.pwd)
|
|
115
|
+
|
|
108
116
|
session_id = detect_session_id(cwd) # Fallback — picks newest .jsonl
|
|
109
117
|
tags = ARGV
|
|
110
118
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cc-sessions
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Geir Isene
|
|
@@ -12,8 +12,8 @@ date: 2026-03-03 00:00:00.000000000 Z
|
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: 'A simple tool for bookmarking and resuming Claude Code sessions. Tag
|
|
14
14
|
sessions with meaningful names using /bm inside Claude Code, then quickly resume
|
|
15
|
-
them with ''cc <tag>'' from anywhere. v1.4.
|
|
16
|
-
continuations via hook.'
|
|
15
|
+
them with ''cc <tag>'' from anywhere. v1.4.2: Fix cwd drift in session detection
|
|
16
|
+
on context continuations via hook.'
|
|
17
17
|
email:
|
|
18
18
|
- g@isene.com
|
|
19
19
|
executables:
|