Skip to content

Version Packages#35

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main
Open

Version Packages#35
github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

somtum@2.3.0

Minor Changes

  • 4b4dfd5: Fix transcript parsing against real Claude Code JSONL and tighten hook hygiene.
    • Transcript parsing (major fix): Claude Code delivers tool results as user-role messages. Somtum previously treated them as real user prompts, which (a) truncated every cached response at the first tool call, (b) polluted the prompt cache with garbage [tool_result …] entries, and (c) fed tool output to the extractor as user speech. Tool-result messages are now classified as tool turns, isMeta/isSidechain lines are skipped, oversized tool results are truncated, and synthetic prompts (slash-command wrappers, interruption markers) are never used as cache keys.
    • Session-scoped injection dedup: memories already injected earlier in the same session are no longer re-injected on every prompt (injected context persists in the session's context window). State resets on a new session or after compaction.
    • Cache retention enforced: cache.ttl_days and cache.max_entries were config-only; the cache now prunes invalidated, expired, and least-recently-hit overflow entries at session end.
    • Migration race fixed: two processes opening the same fresh DB concurrently could crash with UNIQUE constraint failed: schema_migrations.version; migrations now re-check under the write lock.
    • CLI fallback cost fix: the claude -p extraction fallback now passes --model, so extraction runs on the configured Haiku model instead of the user's default (often Opus).
    • SOMTUM_HOME respected everywhere: session state, warm-start files, hook.log, and the first-session flag previously hardcoded ~/.somtum; they now honor SOMTUM_HOME (the first-session flag was written to a different path than it was read from when SOMTUM_HOME was set). Tests are also isolated from the developer's real ~/.somtum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants