Skip to content

Fix MemosReader default endpoint and metadata#22156

Open
hsusul wants to merge 2 commits into
run-llama:mainfrom
hsusul:fix-memos-reader
Open

Fix MemosReader default endpoint and metadata#22156
hsusul wants to merge 2 commits into
run-llama:mainfrom
hsusul:fix-memos-reader

Conversation

@hsusul

@hsusul hsusul commented Jun 26, 2026

Copy link
Copy Markdown

#Summary
This PR fixes two issues in MemosReader:

  • Preserve the /memo path when constructing the default /all endpoint so requests are sent to /api/memo/all.
  • Use the string "id" as the metadata key instead of the built-in id function.

Tests

Added regression tests covering:

  • The default request URL.
  • The metadata contents, including the "id" key.

Verified locally with:
uv run -- pytest tests/test_readers_memos.py -q

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant