Skip to content

Fix JSON serialization issue with non-ASCII characters (#359) - #370

Open
Adityadoijad wants to merge 3 commits into
MemPalace:developfrom
Adityadoijad:main
Open

Fix JSON serialization issue with non-ASCII characters (#359)#370
Adityadoijad wants to merge 3 commits into
MemPalace:developfrom
Adityadoijad:main

Conversation

@Adityadoijad

Copy link
Copy Markdown

Added ensure_ascii=False to json.dumps() to properly handle non-ASCII characters.

Fixes #359

@web3guru888 web3guru888 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix — ensure_ascii=False is indeed the right solution for the non-ASCII serialization issue (#359).

Heads up: #425 by @barry3406 addresses the exact same issue (same two json.dumps call sites in mcp_server.py, same fix) and also includes two regression tests in test_mcp_server.py. You may want to coordinate to avoid duplicate effort — or maintainers can pick whichever PR to merge and close the other.

🔭 Reviewed as part of the MemPalace-AGI integration project — autonomous research with perfect memory. Community interaction updates are posted regularly on the dashboard.

@Adityadoijad

Copy link
Copy Markdown
Author

Hi, this is my first contribution. Could you please approve the workflow so checks can run? Thanks!

@bensig
bensig changed the base branch from main to develop April 11, 2026 22:22
…mPalace#666)

Replace "your memory system" with explicit MemPalace references and
tool names (mempalace_diary_write, mempalace_add_drawer, mempalace_kg_add)
in stop and precompact hook block reasons. This prevents Claude Code from
misinterpreting the hook as a native auto-memory save instruction.

Updated in both Python (hooks_cli.py) and standalone shell scripts.

Also fix CONTRIBUTING.md Getting Started to show the fork-first workflow,
matching the PR Guidelines section.
@bensig

bensig commented Apr 12, 2026

Copy link
Copy Markdown
Contributor

hey @Adityadoijad — this conflicts with develop after some recent merges to mcp_server.py. could you pls rebase? the ensure_ascii fix is solid, just needs to land on the current code. thanks!

@Adityadoijad
Adityadoijad requested a review from igorls as a code owner April 12, 2026 12:37
@igorls igorls added area/hooks Claude Code hook scripts (Stop, PreCompact, SessionStart) area/mcp MCP server and tools bug Something isn't working labels Apr 14, 2026
@igorls

igorls commented May 8, 2026

Copy link
Copy Markdown
Member

Hi, thanks for the contribution.

This PR has merge conflicts with develop, and the branch has not been updated in over 7 days, which puts it before our most recent release. The conflicts are likely against work that landed in that release.

Could you rebase onto develop so we can take another look?

If this change is no longer relevant, feel free to close the PR.

(This message is part of a periodic backlog pass, sent to all open PRs that match this state.)

@igorls igorls added the needs-rebase PR has merge conflicts with develop and needs rebase label May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/hooks Claude Code hook scripts (Stop, PreCompact, SessionStart) area/mcp MCP server and tools bug Something isn't working needs-rebase PR has merge conflicts with develop and needs rebase

Projects

None yet

Development

Successfully merging this pull request may close these issues.

【bug】json.dumps(response) does not set ensure_ascii=False

5 participants