Why: The feature branch is on main, and the open task card would stay as bookkeeping debt.
Evidence: Dev pull request 186 merged as 090be2404e. The merge subject does not contain the from-branch line, so the automatic scan skipped it.
Impact: The card moves to .task/archive with status filled in. No product code changes.
Refs: .task/archive/feature-sillytavern-review.md
Co-authored-by: Cursor <cursoragent@cursor.com>
weichen
merged commit 4d59610fd1 into main2026-10-04 19:56:07 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
feature/sillytavern-review 任务卡
任务主记录:Dev #186;状态:已完成(回填);owner:weichen
基线与授权
4fd03eee62make task-finish。不拷 SillyTavern 代码或文案。不轮换 Tavily 密钥,只在验收说明里建议轮换。不改认证默认auto,不加 CSRF token,不加 CSP 上报端点。目标与非目标
/命令展开成提示词且不自动触发。Message增加excluded/variantGroup/variantIndex。Conversation增加sessionNote。ContextObservation增加sections与prefixHash。新表见 Backend 迁移 v16。设置新增context.userInstructions、context.contextWindow、context.messageShape。allowedHosts,否则未开认证时 Host 校验返回 403。旧设置里的明文密钥在启动时迁入secret_keys后从设置 JSON 清除;运行时仍接受尚未迁走的旧字段。同步记录
4fd03eee624fd03eee62结果与验证
0b5c774,native3a110a7,squad5a57636,ui6b2589c,frontendeb6502f,documentsf3f823e,backendc05832d。make test与make build退出码 0。config explain --addr 0.0.0.0:8788显示拒绝启动。serve --addr 0.0.0.0:18799退出码 1 且不建库。dev 已部署dev@ae06838,监听127.0.0.1:8788;/带 CSP、nosniff、same-origin。该实例开了认证:跨站 POST 403,无 Origin 的 POST 与Host: evil.example为 401。同一二进制的无认证实例上,无 Origin 的 POST 为 201,跨站 POST 403,Host: evil.example403,127.0.0.1的健康检查 200,HTML 工件带sandbox。浏览器:Markdown 预览去掉 script 与javascript:链接,外链图片变成「外部图片 · 域名」;docx、xlsx、pdf 与示例插件工作区无 CSP 报错;mock 对话一轮可见复制、排除、重新生成和「约 N token」。| 同步前验收 |
4fd03eee62|cd6be00141| 2026-10-04T18:42:56Z || 同步前验收 |
4fd03eee62|ce55168325| 2026-10-04T18:45:12Z || 同步前验收 |
4fd03eee62|ae06838d66| 2026-10-04T19:45:46Z || 同步前验收 |
4fd03eee62|3678f58cd3| 2026-10-04T19:46:37Z |闭合记录(card-autoclose 回填)