Skip to content

fix(ov-usage): tolerate literal % in source titles; warn installer users about the marketplace - #5662

Closed
ZaynJarvis wants to merge 1 commit into
mainfrom
fix/ov-usage-followups
Closed

ZaynJarvis wants to merge 1 commit into
mainfrom
fix/ov-usage-followups

Conversation

@ZaynJarvis

Copy link
Copy Markdown
Collaborator

Description

Follow-ups from the review of #5653 (ov-usage cards).

Changes Made

  • hooks/sources.ts: titleOf called decodeURIComponent unguarded, so a source title with a literal % (for example 50% off.md) threw URIError and 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 %20 escape.
  • README / README_CN: users who installed openviking-memory with the one-line installer already have a marketplace named openviking; adding the repository marketplace replaces it, so openviking-memory then updates from main. The README now says so.
  • Bump ov-usage to 0.1.1.

Testing

  • claude plugin validate examples/claude-code-usage-plugin: passes
  • claude plugin test examples/claude-code-usage-plugin: 6 pass
  • bash .github/scripts/check-plugin-version-bumps.sh origin/main: passes

Type of Change

  • Bug fix
  • Documentation update

🤖 Generated with Claude Code

…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>
@ZaynJarvis

Copy link
Copy Markdown
Collaborator Author

Superseded by #5663, which merges ov-usage into openviking-memory and includes this fix.

@ZaynJarvis ZaynJarvis closed this Oct 6, 2026
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant