ReMe/docs/zh
Zhengxu (Joshua) Jin 0b5bb64f26
fix(search): accept CLI queries that look like numbers (#612)
* fix(search): accept CLI queries that look like numbers

The CLI parses key=value arguments into typed values, so query=404 reached the search steps as an int and failed on .strip(), and query=NaN or query=Infinity became non-finite floats that the HTTP client cannot encode as JSON and the MCP client sends as null.

Read the query as text in the four search steps, as ChatStep already does, and keep values that float() reads as NaN or infinity as strings.

* fix(search): treat only a missing query as empty

str(query or "") turned query=0 and query=0.0 into an empty string, so those searches still failed with "query cannot be empty". Check for None before converting instead.

The BEAM and LME plugins replace the default search job with their own SearchV2Step, which still called .strip() on the raw value, so query=404 raised AttributeError when either plugin was enabled. Read the query the same way there.

The numeric-query test is now parametrized over the six steps and passes 404, 0 and 0.0 through parse_kwargs first.
2026-10-16 10:36:05 +08:00
..
integrations feat(integrations): add automatic memory plugins for Claude Code and Codex (#575) 2026-10-12 20:12:47 +08:00
reference docs: recommend two-stage service usage across guides (#620) 2026-10-15 11:41:17 +08:00
auto_dream.md docs: recommend two-stage service usage across guides (#620) 2026-10-15 11:41:17 +08:00
auto_link.md feat(evolve): tag auto-dream outputs (#538) 2026-09-11 14:08:29 +08:00
auto_memory.md feat(auto-memory): save session images with source links (#574) 2026-10-09 17:42:13 +08:00
auto_resource.md feat(auto-resource): unify text and image auto-resource using agentwrapper (#555) 2026-09-23 10:20:35 +08:00
blog_20260920.md docs: recommend two-stage service usage across guides (#620) 2026-10-15 11:41:17 +08:00
blog_20261009.md docs: add bilingual multimodal memory blog and latest updates (#601) 2026-10-12 17:19:22 +08:00
configuration.md fix(search): accept CLI queries that look like numbers (#612) 2026-10-16 10:36:05 +08:00
contributing.md docs: rebuild documentation site with VitePress (#518) 2026-09-04 14:50:50 +08:00
docker.md docs: recommend two-stage service usage across guides (#620) 2026-10-15 11:41:17 +08:00
faq.md feat(proactive): separate proactive refresh from auto dream (#488) 2026-09-07 17:23:37 +08:00
framework.md docs: recommend two-stage service usage across guides (#620) 2026-10-15 11:41:17 +08:00
index.md feat(docs): redesign homepage and add traffic dashboard (#522) 2026-09-05 00:53:32 +08:00
integrations.md feat(integrations): add automatic memory plugins for Claude Code and Codex (#575) 2026-10-12 20:12:47 +08:00
memory_as_file.md feat(proactive): separate proactive refresh from auto dream (#488) 2026-09-07 17:23:37 +08:00
memory_search.md docs: recommend two-stage service usage across guides (#620) 2026-10-15 11:41:17 +08:00
operations.md docs(operations): explain that reindex cannot refresh stale chunks (#585) 2026-10-15 22:17:01 +08:00
plugin_development.md docs: recommend two-stage service usage across guides (#620) 2026-10-15 11:41:17 +08:00
plugin_management.md docs: recommend two-stage service usage across guides (#620) 2026-10-15 11:41:17 +08:00
proactive.md docs: recommend two-stage service usage across guides (#620) 2026-10-15 11:41:17 +08:00
quick_start.md docs: recommend two-stage service usage across guides (#620) 2026-10-15 11:41:17 +08:00
reme-blog.md docs: refresh agent integration guides (#545) 2026-09-14 17:55:08 +08:00
reme_scene.md docs: recommend two-stage service usage across guides (#620) 2026-10-15 11:41:17 +08:00
services.md docs: recommend two-stage service usage across guides (#620) 2026-10-15 11:41:17 +08:00
traffic.md feat(docs): redesign homepage and add traffic dashboard (#522) 2026-09-05 00:53:32 +08:00