feat: SQLite message tracking, tmux windows, tool call display#12
Open
MichaelC001 wants to merge 3 commits intokidandcat:mainfrom
Open
feat: SQLite message tracking, tmux windows, tool call display#12MichaelC001 wants to merge 3 commits intokidandcat:mainfrom
MichaelC001 wants to merge 3 commits intokidandcat:mainfrom
Conversation
Python script to parse Claude Code transcript JSONL into CSV or terminal table format for debugging. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- New db.go: SQLite-backed message tracking and tool state - INSERT OR IGNORE for atomic dedup (fixes parallel hook race) - Telegram→terminal delivery confirmation with 10s auto-retry - Delete ledger.go (JSONL implementation) - Update tests to use temp SQLite DB Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
INSERT OR IGNORE caused delivery flags to stay at 0 when the first insert had telegram_delivered=false. Subsequent inserts were ignored, so the message was never marked as delivered and got resent repeatedly. Use ON CONFLICT DO UPDATE SET with MAX() to only upgrade flags (false→true), never downgrade. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Major reliability and architecture improvements for the Claude Code ↔ Telegram bridge.
1. SQLite message database (replaces JSONL ledger)
~/Library/Caches/ccc/ccc.dbINSERT ... ON CONFLICT UPDATEfor atomic dedup — fixes parallel hook race condition where the same message was sent multiple times2. Tool call display in Telegram
⚙️ ToolName: summaryin a blockquote💬prefix)⚠️indicator3. Tmux windows instead of sessions
4. Other improvements
~/.config/ccc/config.json, runtime state to~/Library/Caches/ccc/parse_transcript.py) for debuggingTest plan
sqlite3 ~/Library/Caches/ccc/ccc.db "SELECT * FROM messages"to inspect state🤖 Generated with Claude Code