cc-sessions 1.4.0 → 1.4.1
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 +10 -0
- data/bin/cc-bookmark +11 -2
- 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: 302db7d00c9681e2823893988f22267090d6d5f4fdce2d32a64ace1fca5aac52
|
|
4
|
+
data.tar.gz: 12fefe5a2c340b8c3cd6bb8b599a81131fa353e01b7716a7b74b5f8dabe95394
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8898826c0e19218be5b433168ba3c436331d85b8452eb7d8eb29df33355d823d33628e2047a24eea26b444862eb47e6f8dfc41ca4d4e42a1f6c630d0dc891568
|
|
7
|
+
data.tar.gz: 6b8fe25b31450efecac302897df36624968d035c07d429e2d5f6174747847f515355c26c81faecf673a0e7b7b816ab5e9be045caddb04c0910f6c4c85ff49cfb
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.4.1] - 2026-03-03
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- `cc-bookmark` query mode now proactively migrates bookmarks when a context continuation is detected (was only printing tags without migrating)
|
|
7
|
+
- Hook now detects new session IDs by comparing newest `.jsonl` against a stamp, instead of only running once per `CC_SESSION_ID`
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- Hook outputs "Bookmark auto-migrated" when migration happens during a continuation
|
|
11
|
+
- Migration prints "Bookmark migrated:" instead of "Current bookmark:" so the hook can distinguish migration from no-op
|
|
12
|
+
|
|
3
13
|
## [1.4.0] - 2026-03-03
|
|
4
14
|
|
|
5
15
|
### Fixed
|
data/bin/cc-bookmark
CHANGED
|
@@ -114,8 +114,17 @@ if tags.empty?
|
|
|
114
114
|
if original_id
|
|
115
115
|
entry = bookmarks['sessions'][original_id]
|
|
116
116
|
if entry
|
|
117
|
-
#
|
|
118
|
-
|
|
117
|
+
# Check if session was continued (newer .jsonl exists)
|
|
118
|
+
if session_id && session_id != original_id
|
|
119
|
+
# Migrate bookmark to the new session ID
|
|
120
|
+
bookmarks['sessions'].delete(original_id)
|
|
121
|
+
bookmarks['sessions'][session_id] = entry
|
|
122
|
+
save_bookmarks(bookmarks)
|
|
123
|
+
FileUtils.rm_f(File.join(RESUME_DIR, "#{original_id}.json"))
|
|
124
|
+
puts "Bookmark migrated: #{entry['tags'].join(', ')}"
|
|
125
|
+
else
|
|
126
|
+
puts "Current bookmark: #{entry['tags'].join(', ')}"
|
|
127
|
+
end
|
|
119
128
|
else
|
|
120
129
|
# Session ID changed (compaction/context reset).
|
|
121
130
|
# The bookmark is on the original ID but CC created a new session.
|
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.1
|
|
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
|
-
|
|
15
|
+
them with ''cc <tag>'' from anywhere. v1.4.1: Proactive bookmark migration on context
|
|
16
|
+
continuations via hook.'
|
|
17
17
|
email:
|
|
18
18
|
- g@isene.com
|
|
19
19
|
executables:
|