Repository navigation
fix(ov-usage): tolerate literal % in source titles; warn installer users about the marketplace - #5662
Closed
ZaynJarvis wants to merge 1 commit into
Closed
ZaynJarvis wants to merge 1 commit into
ZaynJarvis wants to merge 1 commit into
Conversation
…ers about the marketplace titleOf passed URIs to decodeURIComponent unguarded, so a title with a literal "%" threw URIError and that answer's card failed to render. Fall back to the raw URI when decoding fails. The README now notes that adding the repository marketplace replaces the installer's marketplace of the same name, so openviking-memory then updates from main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 of 21 tasks
Collaborator
Author
|
Superseded by #5663, which merges ov-usage into openviking-memory and includes this fix. |
t0saki
pushed a commit
that referenced
this pull request
Oct 6, 2026
…nswers (#5663) Move the ov-usage cards (#5653) into openviking-memory as a Claude Code hooks module, so there is one plugin to install instead of two. The module lives in mods/usage/ and is registered through `modules` in hooks/hooks.json, next to the existing command hooks. Cards stay collapsed by default; `/openviking-usage expand|collapse` and the card button are unchanged. This includes #5662's fix for titles with a literal "%". Claude Code ignores the module when it has no hooks modules or has them switched off, and the command hooks run as before. On modules-capable builds older than 2.1.286, the module fails to load (it uses `session.append`), Claude Code logs it, and the command hooks still register. - Remove examples/claude-code-usage-plugin and its marketplace and version-bump entries. - Bump openviking-memory to 0.7.0. - The archive check follows a hooks module's .ts/.tsx entry and its extensionless imports. - The shared-runtime sync emits .d.mts copies only for targets whose TypeScript imports them, so the module doesn't add declaration files to the memory plugin. - Rewrite the docs sections and add a "Source cards" section to the plugin READMEs. Co-authored-by: zhou.wong <zhou.wong@bytedance.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Description
Follow-ups from the review of #5653 (ov-usage cards).
Changes Made
hooks/sources.ts:titleOfcalleddecodeURIComponentunguarded, so a source title with a literal%(for example50% off.md) threwURIErrorand that answer's card failed to render. It now falls back to the raw URI when decoding fails.tests/sources.test.ts: covers a literal%and a normal%20escape.openviking; adding the repository marketplace replaces it, so openviking-memory then updates frommain. The README now says so.Testing
claude plugin validate examples/claude-code-usage-plugin: passesclaude plugin test examples/claude-code-usage-plugin: 6 passbash .github/scripts/check-plugin-version-bumps.sh origin/main: passesType of Change
🤖 Generated with Claude Code