github Gentleman-Programming/engram v1.10.4

latest releases: v1.20.0, v1.19.0, pi-v0.1.10...
4 months ago

Highlights

  • Fix session inflation: OpenCode Task() sub-agent executions no longer register as separate Engram sessions
  • Fix pre-existing bug in session.created event handler reading the wrong property path

What Changed

  • The OpenCode plugin now detects sub-agent sessions via parentID (set by OpenCode on all Task() sessions) and skips session registration for them
  • Secondary detection via title suffix subagent) provides defense-in-depth
  • Sub-agent session IDs are tracked to prevent cross-hook inflation via tool.execute.after
  • Fixed event.properties.id to event.properties.info.id (correct path per OpenCode SDK types)

Impact

Before this fix, a single user conversation using sub-agents could generate 170+ sessions in the Engram DB. After this fix, only the real user session is registered.

Included Work

  • fix(plugin): skip sub-agent session registration in OpenCode plugin

Don't miss a new engram release

NewReleases is sending notifications on new releases.