Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion internal/setup/plugins/opencode/engram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ Before ending a session or saying "done" / "listo" / "that's it", you MUST:
## Relevant Files
- path/to/file — [what it does or what changed]

This is NOT optional. If you skip this, the next session starts blind.
2. Call \`mem_session_end\` to formally close the session.

This is NOT optional. If you skip this, the next session starts blind and leaves orphaned sessions.

### AFTER COMPACTION

Expand Down Expand Up @@ -313,6 +315,9 @@ export const Engram: Plugin = async (ctx) => {
const info = (event.properties as any)?.info
const sessionId = info?.id
if (sessionId) {
// Tell Engram the session ended
await engramFetch(`/sessions/${sessionId}/end`, { method: "POST" })

toolCounts.delete(sessionId)
knownSessions.delete(sessionId)
subAgentSessions.delete(sessionId)
Expand Down
4 changes: 3 additions & 1 deletion internal/setup/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ Before ending a session or saying "done" / "listo" / "that's it", you MUST:
## Relevant Files
- path/to/file — [what it does or what changed]

This is NOT optional. If you skip this, the next session starts blind.
2. Call mem_session_end to formally close the session.

This is NOT optional. If you skip this, the next session starts blind and leaves orphaned sessions.

### PASSIVE CAPTURE — automatic learning extraction

Expand Down
Loading