Skip to content

fix: record agent episodes reliably - #1231

Open
cedric013 wants to merge 3 commits into
yvgude:mainfrom
cedric013:fix/1230-agent-episodes
Open

fix: record agent episodes reliably#1231
cedric013 wants to merge 3 commits into
yvgude:mainfrom
cedric013:fix/1230-agent-episodes

Conversation

@cedric013

Copy link
Copy Markdown
Contributor

Fixes #1230.

Summary

  • centralize episodic writes behind a locked, atomic writer
  • record shutdown episodes when an MCP session has tool calls
  • persist agent identity on episodes and deduplicate per agent
  • route ctx_session manual and auto episode recording through the shared writer

Validation

  • git diff --check
  • attempted cargo check --lib locally, but existing Cargo jobs held the build lock; PR CI is the authoritative validation

@yvgude
yvgude force-pushed the fix/1230-agent-episodes branch 2 times, most recently from ae72cf3 to 2971e9b Compare July 23, 2026 22:18
cedric013 and others added 3 commits July 24, 2026 00:56
Co-authored-by: Cursor <cursoragent@cursor.com>
- Convert match-else to let-else in ctx_session.rs
- Add agent_id field to SessionToolOptions in compaction_survival_tests.rs

Co-authored-by: Cursor <cursoragent@cursor.com>
@yvgude
yvgude force-pushed the fix/1230-agent-episodes branch from 2971e9b to 0848427 Compare July 23, 2026 23:02
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.

Record agent episodic episodes reliably

2 participants