Bug: Documents stored with raw JSON instead of parsed fields #234
Labels
No labels
good first issue
has-pr
help wanted
idea
priority
critical
priority
high
priority
low
priority
medium
status
blocked
status
in-progress
status
needs-review
status
ready
type
bug
type
docs
type
enhancement
type
feature
type
refactor
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
customable/claude-mem#234
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Documents are stored with the entire JSON response in the
contentfield instead of extracting and storing individual fields properly.Current Behavior
The
contentcolumn contains the full JSON blob:This causes the UI to display
"{"or"["as the document title (first character of the JSON string).Expected Behavior
When saving documents, the storage logic should:
url→ store inurlortitlecolumnresult→ store incontentcolumn (the actual documentation text)bytes,code,durationMs) separately if neededLocation
The bug is in the document storage/caching logic, likely in:
documentstableAdditional Context
The document
contentfield is a JSON string like:The UI should parse this JSON and extract a meaningful title:
urlfield (e.g., "code.claude.com/docs/en/hooks")Currently it seems like the UI is displaying
content[0](first character of the JSON string) instead of parsing the JSON and extracting a title field.Bug: Documents view shows JSON characters instead of titlesto Bug: Documents stored with raw JSON instead of parsed fieldsContext7 Format
Context7 returns an array of content blocks:
Parsing needed:
textfrom each content block### SubagentStop Hook Event) as titleSource:URL as titletextcontent in thecontentcolumnSummary of formats to handle:
{url, result, bytes, ...}urlfield[{type: "text", text: "..."}]###header orSource:URL