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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/bin/cc-bookmark +11 -2
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c743c60e405530074e227bd6f4b02165cd78c217f0485898bf91505300db5eb
4
- data.tar.gz: 5137132931a0bba947285cf71c36e64b978495ef6235128d56e6841702ca093b
3
+ metadata.gz: 302db7d00c9681e2823893988f22267090d6d5f4fdce2d32a64ace1fca5aac52
4
+ data.tar.gz: 12fefe5a2c340b8c3cd6bb8b599a81131fa353e01b7716a7b74b5f8dabe95394
5
5
  SHA512:
6
- metadata.gz: 1f1b848071bce7431e0f2de516e5ab314397be2a0df0c4447c744e4489032e9b509bc540bc5a69fdae170d2a619dfce8eeb9292f33aaf63cc6624e719afe2275
7
- data.tar.gz: 771350b8e375aa0a6399dcce5f17f335b87d612e65d346eb5a5db1e19b65114e30f39be5edb3bdff1303d743e7dd04bcd2ebcf0fda1b7df5233c47d72ebcf7e8
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
- # Session ID hasn't changed, or bookmark is still on the original ID
118
- puts "Current bookmark: #{entry['tags'].join(', ')}"
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.0
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.0: Auto-follows context continuations
16
- to latest session on resume.'
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: