---
name: fix-blank-search
description: Repair the synthetic blank search fixture, checking the approved write scope and two regression tests.
license: See USAGE.md in the sample package
compatibility: Node.js 22 or newer; the optional MCP tool uses stdio protocol 2025-11-25.
---

# 修复空白搜索

1. 读取 `task.json`。有 `get_search_task` 工具时，也可以从该工具读取同一份任务。
2. 在样例工程运行 `node --test tests/search.test.mjs`，核对空白分支失败、正常关键词通过。
3. 给出改动计划，说明唯一写入文件 `src/search.mjs` 和两条验收条件，等待人工确认。
4. 经确认后，在判断是否为空前调用 `trim()`，保持常规关键词的返回行为。
5. 重跑测试，交付代码差异、测试结果与确认记录。
