Skip to content

feat(#30): key cache on index tree OID to skip regen after stage#31

Merged
cachebag merged 1 commit into
masterfrom
keygen
May 12, 2026
Merged

feat(#30): key cache on index tree OID to skip regen after stage#31
cachebag merged 1 commit into
masterfrom
keygen

Conversation

@cachebag
Copy link
Copy Markdown
Owner

Closes #30

This PR keys staged snapshots on the Git index tree OID (via write_tree) so staging the same content no longer forces a new diff hash and LLM run, and we persisted that OID in the cache so complete can trust entries after staging.

Now if you stage changes, sotto won't try to run another call to generate the message.

@cachebag cachebag added this to the 0.2.0-beta milestone May 12, 2026
@cachebag cachebag self-assigned this May 12, 2026
@cachebag cachebag added area:daemon Watcher, fs events, debounce, shutdown type:improvement Refactor, performance, polish (no new feature flag) priority:P2 Default — scheduled work labels May 12, 2026
@cachebag cachebag merged commit 96c2ab4 into master May 12, 2026
4 checks passed
@cachebag cachebag deleted the keygen branch May 12, 2026 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:daemon Watcher, fs events, debounce, shutdown priority:P2 Default — scheduled work type:improvement Refactor, performance, polish (no new feature flag)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

daemon: key generation on index tree oid — skip regen after stage when snapshot unchanged

1 participant