f6e8b29640
终端独立 terminal_search 上下文(10条),与 servers_search、push_search 隔离。 Co-authored-by: Cursor <cursoragent@cursor.com>
1021 B
1021 B
审计 — 各页搜索历史互不共享
Changelog: docs/changelog/2026-06-12-search-history-isolated-scopes.md
范围(文件清单)
| 文件 | 变更 |
|---|---|
server/utils/server_search_history.py |
terminal 上下文,上限 10 |
server/api/servers.py |
terminal-search-history API |
frontend/src/composables/useServerSearchHistory.ts |
terminal scope |
frontend/src/composables/terminal/useTerminalSessions.ts |
独立历史 |
tests/test_server_search_history.py |
隔离与 API 测试 |
Step 3 规则扫描
| H | 规则 | 结论 |
|---|---|---|
| H1 | 安全 | PASS — admin 隔离 |
| H2 | 无静默吞错 | PASS |
| H3 | 无新密钥 | PASS |
| H4 | CUD | N/A |
Closure
| H | 判定 | 依据 |
|---|---|---|
| H1–H4 | PASS | admin_ui_preferences 分 context |
DoD
- type-check
- pytest test_server_search_history
- 生产三页互不串历史验证
验证
servers / terminal / push 各搜一词,下拉互不可见。