Files
mnote/bugs/07-ai/done/7-65-page-ai-pi-rust-diagnostics-ui-checklist-v1.md

1.7 KiB

7-65 Page AI Pi Rust diagnostics UI checklist

背景

  • P2 取舍里确认:--extension-policy / --repair-policy / session durability / request timeout / max tool iterations / hide cwd 等高级 runtime 策略可以先不做普通用户设置项,但必须在诊断里暴露 effective policy。
  • Pi Rust 官方 doctor / context-preview / list / search / info / update-index 不属于对话主链 bug,但适合进入 Pi Lab 折叠诊断和 AI 管理页。
  • MNote 只做宿主、授权、文件地址和受控诊断入口,不用 MNote 工具替代 Pi Rust 官方能力。

Checklist

  • Pi Lab 折叠诊断区接入 /api/page-ai/pi/diagnostics,提供 doctor / context-preview / list / search / info / update-index 受控入口。
  • Pi Lab 诊断状态显示 effective advancedRuntime 摘要,覆盖 extension policy、repair policy、session durability、request timeout、max tool iterations、hide cwd。
  • AI 管理页 Pi Rust 服务卡展示 effective advancedRuntime 摘要与 JSON 明细。
  • AI 管理页 Pi Rust 服务卡提供同一组官方诊断按钮,复用后端受控 diagnostics wrapper,不透传 raw args。
  • 静态 smoke 覆盖 Pi Lab runtime 的 diagnostics API、按钮、输出区域和 advanced runtime summary。
  • 静态 smoke 覆盖 AI 管理页 diagnostics 卡片、按钮、路由和 effective advanced runtime 展示。

验收命令

node scripts/task-pi-lab-static-smoke.js
node scripts/task-ai-management-control-plane-static-smoke.js
cargo test --manifest-path rust/Cargo.toml -p mnote-web page_ai_pi -- --nocapture
cargo test --manifest-path rust/Cargo.toml -p mnote-web ai_admin -- --nocapture