claude-code-cache-fix 2.0.5 → 2.0.6

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-cache-fix",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "Fixes prompt cache regression in Claude Code that causes up to 20x cost increase on resumed sessions",
5
5
  "type": "module",
6
6
  "exports": "./preload.mjs",
@@ -46,8 +46,8 @@ USER_CONTEXT_FILE="${2:-}"
46
46
  if [ -d "$INPUT" ]; then
47
47
  # Convert project directory to CC's project path format
48
48
  REAL_PATH=$(realpath "$INPUT")
49
- # CC replaces / with - and prepends -
50
- PROJECT_KEY=$(echo "$REAL_PATH" | sed 's|/|-|g')
49
+ # CC replaces / with - and underscores with - , then prepends -
50
+ PROJECT_KEY=$(echo "$REAL_PATH" | sed 's|/|-|g' | sed 's|_|-|g')
51
51
  PROJECT_DIR="$HOME/.claude/projects/${PROJECT_KEY}"
52
52
 
53
53
  if [ ! -d "$PROJECT_DIR" ]; then
@@ -208,5 +208,7 @@ SIZE=$(wc -c < "$OUTPUT")
208
208
  echo ""
209
209
  echo "Summary generated: $OUTPUT ($SIZE bytes)"
210
210
  echo ""
211
- echo "To restore context after /clear:"
211
+ echo "To restore context after /clear, use this as your first message:"
212
+ echo ""
212
213
  echo " Read $OUTPUT for context on where we left off."
214
+ echo ""