[SEN] 修复设备编辑请求包含新建专用字段 (#56) #57

Open
ila wants to merge 8 commits from agent/codex/56-sense-device-edit-payload into agent/codex/54-sense-liveview-on-demand
Owner

范围

修复 Sense 设备编辑请求误带新建专用字段导致保存失败的问题。

  • 新建 payload 显式包含 modality
  • 编辑 payload 仅发送 PATCH 契约允许字段,不再包含 modality
  • 增加中文名称/安装位置与字段边界测试
  • 保持后端未知字段严格拒绝策略
  • 更新 Wiki 镜像和任务归档

验证

  • corepack pnpm@9.15.1 test:device-payload:2 项通过
  • 前端 lint:0 error(806 条既有 warning)
  • 前端 build:通过(3 条既有体积 warning)
  • go test ./...:通过
  • PostgreSQL 实际 API:中文安装位置 PATCH 成功并可回读
  • Windows 发布目录重新构建并启动,Sense、MediaMTX 相关端口正常监听
  • git diff --check:通过

已知边界

  • 浏览器中的最终点击保存需用户人工验收。
  • check_harness.py --strict 仍被既有 #44 归档缺少“最终方案”阻塞。
  • 本地 Wiki 同步脚本配置的旧地址返回 404;本任务 Wiki 已经由 Gitea MCP 写入并读取确认。

关联 #56。基于 #54 分支,避免把尚未合入的实时监看修复重复混入 main 差异。

## 范围 修复 Sense 设备编辑请求误带新建专用字段导致保存失败的问题。 - 新建 payload 显式包含 `modality` - 编辑 payload 仅发送 PATCH 契约允许字段,不再包含 `modality` - 增加中文名称/安装位置与字段边界测试 - 保持后端未知字段严格拒绝策略 - 更新 Wiki 镜像和任务归档 ## 验证 - `corepack pnpm@9.15.1 test:device-payload`:2 项通过 - 前端 lint:0 error(806 条既有 warning) - 前端 build:通过(3 条既有体积 warning) - `go test ./...`:通过 - PostgreSQL 实际 API:中文安装位置 PATCH 成功并可回读 - Windows 发布目录重新构建并启动,Sense、MediaMTX 相关端口正常监听 - `git diff --check`:通过 ## 已知边界 - 浏览器中的最终点击保存需用户人工验收。 - `check_harness.py --strict` 仍被既有 #44 归档缺少“最终方案”阻塞。 - 本地 Wiki 同步脚本配置的旧地址返回 404;本任务 Wiki 已经由 Gitea MCP 写入并读取确认。 关联 #56。基于 #54 分支,避免把尚未合入的实时监看修复重复混入 main 差异。
ila added 8 commits 2026-08-13 22:40:30 +08:00
You are not authorized to merge this pull request.
This pull request can be merged automatically.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin agent/codex/56-sense-device-edit-payload:agent/codex/56-sense-device-edit-payload
git checkout agent/codex/56-sense-device-edit-payload
Sign in to join this conversation.