Skip to content

v0.2.1 — SessionStart config injection + delegation

Choose a tag to compare

@takashito takashito released this 11 Jun 02:52
· 5 commits to main since this release

Highlights

  • New SessionStart hook (hooks/session-context.sh): resolves the obsidian-chronicle config once per session start and serves two consumers from the single result.
    • Main session — injects the resolved vault paths + a rule to delegate all vault work (read/search included, not just writes) to the obsidian-chronicle:obsidian-vault agent, via additionalContext.
    • obsidian-vault agent — subagents don't receive SessionStart context, so the hook also writes the resolved config to a cwd-keyed cache file that the agent reads instead of re-running resolve-config.sh.
  • Fires on startup / resume / clear / compact, so the injected snapshot also refreshes after compaction.
  • Fail-safe: recursion guard for the claude -p summarizer child, silent exit + stale-cache removal when no vault is configured, never blocks session start.
  • agents/obsidian-vault.md reads the cache first (falls back to the resolver).
  • /obsidian-chronicle:setup clears the cache after writing config.

Full changelog: v0.2.0...v0.2.1