this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update CLAUDE.md with session learnings

- Document the Haiku double-encoding gotcha and recovery function
- Add regenerate command to command reference
- Note that process now auto-regenerates affected daily summaries

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

alice 5c8d284c c6b06e97

+4 -2
+4 -2
CLAUDE.md
··· 23 23 24 24 ## Gotchas 25 25 26 - - **Haiku + local proxy = malformed output**: The local API proxy impersonates Claude Code, so Haiku sees `<parameter>` tags and mimics them. Fix: use `mode: 'tool'` in `generateObject()` to force actual tool calling. 26 + - **Haiku double-encoding**: Even with `mode: 'tool'`, Haiku sometimes returns double-encoded JSON where the entire response is a string with escaped quotes. The `tryRecoverMalformedResponse()` function in `summarizer.ts` handles this by regex-extracting fields from the malformed output. If you see "Session details unavailable", check the error logs for recoverable data. 27 27 - Kill any stale process on port 3456 before running `bun cli serve` 28 28 - **Monorepo path detection**: Claude's path encoding is lossy (`/` → `-`), so `taper-calculator-apps-web` could mean a dashed name or nested dirs. The code probes the filesystem right-to-left to find which interpretation exists, then uses git root as canonical project. 29 29 ··· 38 38 ## Commands 39 39 40 40 ```bash 41 - bun cli process # Process new sessions 41 + bun cli process # Process new sessions (also regenerates affected daily summaries) 42 42 bun cli process --week this # Process this week only 43 + bun cli regenerate # Regenerate missing daily summaries 44 + bun cli regenerate --force # Regenerate ALL daily summaries 43 45 bun cli serve # Serve web UI on :3456 44 46 bun dev # Vite dev server on :5173 45 47 ```