@threadbase-sh/streamer 1.98.6 → 1.98.7
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.
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
-- #929 fixed a race where a newly discovered Cursor transcript was first
|
|
2
|
+
-- tailed while conversation_meta still carried the default claude-code
|
|
3
|
+
-- provider: the offset index ran that first append through Claude's parser,
|
|
4
|
+
-- which rejects Cursor lines, and advanced byte_offset past them with no row.
|
|
5
|
+
-- The file then indexes one message short, every later message_index is off
|
|
6
|
+
-- by one against a full parse, and since the state sits at EOF it never heals.
|
|
7
|
+
-- Seen on 2 of the 4 Cursor files indexed on a real install.
|
|
8
|
+
--
|
|
9
|
+
-- #929 stops new damage; this drops the index for every agent-transcripts
|
|
10
|
+
-- file so the next detail read backfills it correctly. Keyed on the path, the
|
|
11
|
+
-- same rule #929 and the classifier use, not on the recorded provider: an
|
|
12
|
+
-- affected file may still be recorded as claude-code. Claude and Codex files
|
|
13
|
+
-- keep their warm index.
|
|
14
|
+
--
|
|
15
|
+
-- conversation_message_index is keyed by the file's basename without
|
|
16
|
+
-- `.jsonl` (ConversationCache.conversationIdForFile); the rtrim/replace pair
|
|
17
|
+
-- is SQLite's basename idiom. Paths are canonical forward-slash form.
|
|
18
|
+
DELETE FROM conversation_message_index
|
|
19
|
+
WHERE conversation_id IN (
|
|
20
|
+
SELECT replace(replace(path, rtrim(path, replace(path, '/', '')), ''), '.jsonl', '')
|
|
21
|
+
FROM conversation_file_state
|
|
22
|
+
WHERE path LIKE '%/agent-transcripts/%'
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
DELETE FROM conversation_file_state
|
|
26
|
+
WHERE path LIKE '%/agent-transcripts/%';
|
package/package.json
CHANGED