fix: prefix part IDs with 'prt_' to satisfy OpenCode v1.2.27+ validation#31
Open
selimdev00 wants to merge 1 commit intosupermemoryai:mainfrom
Open
fix: prefix part IDs with 'prt_' to satisfy OpenCode v1.2.27+ validation#31selimdev00 wants to merge 1 commit intosupermemoryai:mainfrom
selimdev00 wants to merge 1 commit intosupermemoryai:mainfrom
Conversation
OpenCode v1.2.27+ validates that all part IDs must start with 'prt' (enforced via Zod schema in the TUI worker). The supermemory plugin was injecting parts with IDs like 'supermemory-context-<timestamp>' and 'supermemory-nudge-<timestamp>', causing a crash on every first message in a session. Prefix both IDs with 'prt_' to comply with the expected format.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
OpenCode v1.2.27+ enforces that all part IDs must start with
prt(validated via Zod schema in the TUI worker). The supermemory plugin was injecting parts with IDs like:supermemory-context-<timestamp>supermemory-nudge-<timestamp>This causes the TUI worker to throw
Invalid string: must start with "prt"on every first message in a session, breaking the session entirely.Fix
Prefix both part IDs with
prt_:Impact
Without this fix, any user on OpenCode v1.2.27+ with the supermemory plugin enabled will have their session crash immediately after sending the first message.