Skip to content

Fix plugin memory parser attribution#1049

Merged
MaheshtheDev merged 1 commit into
mainfrom
parser
Jun 5, 2026
Merged

Fix plugin memory parser attribution#1049
MaheshtheDev merged 1 commit into
mainfrom
parser

Conversation

@ved015
Copy link
Copy Markdown
Member

@ved015 ved015 commented Jun 4, 2026

Summary

  • Recognize claude-code as Claude Code source metadata, not Codex
  • Add Hermes to plugin space/catalog/icon lookup
  • Scope role-block transcript parsing to OpenClaw and Hermes only
  • Render [SAVE:...] memories using the detected plugin identity

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Jun 4, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
supermemory-app 8288ed9 Commit Preview URL

Branch Preview URL
Jun 04 2026, 02:24 PM

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Jun 4, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
supermemory-mcp 8288ed9 Jun 04 2026, 02:23 PM

@graphite-app graphite-app Bot requested a review from Dhravya June 4, 2026 13:44
@claude
Copy link
Copy Markdown

claude Bot commented Jun 4, 2026

Claude finished @ved015's task in 1m 45s —— View job


Reviewed PR #1049

  • Fetch PR diff and existing review comments
  • Read changed files and surrounding context
  • Analyze for bugs, security issues, and logic errors
  • Submit review

Summary: This PR properly fixes plugin memory attribution by recognizing claude-code as Claude Code source metadata and adding Hermes support. No bugs, security issues, or logic errors found. The code is well-structured with proper null checks and a sensible fallback chain for plugin identity detection.

Score: 10/10 — Clean code, ready to ship.

Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview: Refactors plugin document parsing to properly attribute memories to their source plugin (Claude Code, Codex, OpenClaw, Hermes, etc.) based on source metadata rather than content heuristics.

Issues found: None — this looks good to ship.

The changes are well-structured:

  • pluginIdentityFromSource() correctly maps source strings to plugin identities with proper normalization
  • getDocumentPluginIdentity() has a sensible fallback chain: document.source → sm_source → sm_client → sm_internal_mcp_client_name → space detection
  • Scoping parseRoleBlockTranscript() to OpenClaw and Hermes only is correct since other plugins don't use that format
  • The detectPluginSource() fix to accept both "claude-code" and "claude-code-plugin" prevents misattribution to Codex
  • Hermes additions are consistent with existing plugin patterns

Score: 10/10

Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview: Refactors plugin document parsing to properly attribute memories to their source plugin (Claude Code, Codex, OpenClaw, Hermes, etc.) based on source metadata rather than content heuristics.

Issues found: None — this looks good to ship.

The changes are well-structured:

  • pluginIdentityFromSource() correctly maps source strings to plugin identities with proper normalization
  • getDocumentPluginIdentity() has a sensible fallback chain: document.source → sm_source → sm_internal_mcp_client_name → space detection
  • Scoping parseRoleBlockTranscript() to OpenClaw and Hermes only is correct since other plugins don't use that format
  • The detectPluginSource() fix to accept both "claude-code" and "claude-code-plugin" prevents misattribution to Codex
  • Hermes additions are consistent with existing plugin patterns

Score: 10/10

@MaheshtheDev MaheshtheDev merged commit c5bf8ff into main Jun 5, 2026
9 checks passed
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