Skip to content

Port useful fallbacks from upstream AgentMemory PR 1213 - #22

Merged
martindzejky merged 1 commit into
masterfrom
cursor/agentmemory-upstream-1213-9d82
Aug 18, 2026
Merged

martindzejky merged 1 commit into
masterfrom
cursor/agentmemory-upstream-1213-9d82

Conversation

@martindzejky

Copy link
Copy Markdown
Owner

Summary

  • Reviewed upstream PR 1213 (Cursor marketplace plugin) against our Dotbot adapter.
  • Our integration is already the more complete Cursor-native path: afterAgentResponse, subagent hooks, eventId idempotency, enrich on postToolUse, image stripping, and capture-only /observe with no client /summarize.
  • Ported two small fallbacks from that PR: camelCase sessionId and first-non-empty workspace_roots.
  • Left out the marketplace plugin, sessionEnd transcript backfill, and stop/preToolUse. The fork dedups on eventId only, so a GUI live capture plus transcript re-post would duplicate prompt_submit. Sessions stay open-ended; historical import stays on the importer.

Test plan

  • pnpm format (Prettier check)
  • pnpm test (29 passing, including new session/workspace fallback tests)

Verification log: /opt/cursor/artifacts/agentmemory_hooks_verification.log

Open in Web Open in Cursor 

Accept camelCase sessionId and the first non-empty workspace_roots entry from upstream PR 1213. Leave the marketplace plugin, sessionEnd transcript backfill, and stop/preToolUse out: this adapter stays capture-only Dotbot hooks, and the fork dedups on eventId only.

Co-authored-by: martindzejky <martindzejky@gmail.com>
@martindzejky
martindzejky merged commit acb913f into master Aug 18, 2026
3 checks passed
@martindzejky
martindzejky deleted the cursor/agentmemory-upstream-1213-9d82 branch August 18, 2026 19:19
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.

2 participants