Skip to content

fix: add prt prefix to Part IDs for OpenCode 1.2.25+ compatibility#35

Open
eliawk wants to merge 1 commit intosupermemoryai:mainfrom
eliawk:fix/prt-prefix-for-part-ids
Open

fix: add prt prefix to Part IDs for OpenCode 1.2.25+ compatibility#35
eliawk wants to merge 1 commit intosupermemoryai:mainfrom
eliawk:fix/prt-prefix-for-part-ids

Conversation

@eliawk
Copy link

@eliawk eliawk commented Mar 19, 2026

Summary

  • Fixed ZodError validation failures in OpenCode TUI caused by Part IDs not starting with required prt prefix
  • Updated Part ID generation to include prt- prefix for OpenCode 1.2.25+ compatibility

Problem

OpenCode 1.2.25+ requires all Part IDs to start with the prt prefix. This plugin was generating Part IDs without this prefix, causing TUI glitches and validation errors reported in #29.

Solution

Modified two Part ID generations in src/index.ts:

  • supermemory-nudge-${Date.now()}prt-supermemory-nudge-${Date.now()}
  • supermemory-context-${Date.now()}prt-supermemory-context-${Date.now()}

This ensures compatibility with OpenCode 1.2.25+ while maintaining the descriptive naming convention.

Testing

  • Plugin continues to communicate with Supermemory API successfully
  • TUI validation errors resolved
  • No breaking changes to existing functionality

Fixes #29

- Part IDs must start with prt prefix in OpenCode 1.2.25+
- This fixes ZodError validation failures in the TUI
- Changed supermemory-nudge to prt-supermemory-nudge
- Changed supermemory-context to prt-supermemory-context

Fixes supermemoryai#29
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.

Part IDs in chat.message hook missing required 'prt' prefix

1 participant