This repository was archived by the owner on Sep 2, 2026. It is now read-only.
Repository navigation
refactor: 统一主聊天系统提示词并接入组装轨迹 - #60
Merged
Merged
Conversation
Co-Authored-By: Codex <noreply@anthropic.com>
背景:系统规则改为后置组装后,仅附件新会话的基础消息数组可能为空,原文件注入直接返回导致正文丢失。 改动:空消息时创建携带解析正文的用户消息,保留原有文件解析、工具与身份规则策略。 验证:真实 builder 回归先失败再通过;文件与请求准备相关测试 101 passed、13 subtests passed,ruff 与差异检查通过。 Co-Authored-By: Codex <noreply@anthropic.com>
背景: 主聊天缺少系统提示词组装的真实结果,无法在轨迹中核对本轮规则与各次模型请求使用的有效 system 内容。 改动: 沿用 SSE 与 agent_events 记录组装成功或失败的安全元数据;为主循环和收尾模型请求关联有效 system 指纹。保留原 token 上下文协议、历史缺失语义和非主聊天模板解析路径,不增加中间态或存储表。 验证: 22 个后端目标测试文件共 416 passed、121 subtests passed;所有改动 Python 文件 ruff check、架构检查及 git diff --check 通过。真实浏览器与部署验收尚未执行。 Co-Authored-By: Codex <noreply@anthropic.com>
背景:一期前后端实现及独立整合审查已完成。 改动:更新计划与执行台账,明确本地代码证据、既有类型错误及尚未部署验收的边界。 验证:仅文档更新,git diff --check 通过;对应代码门禁为后端416测试与121子测试、前端376测试。 Co-Authored-By: Codex <noreply@anthropic.com>
背景:首轮 PR CI 发现旧数据库查询夹具返回模拟偏好,完整事件顺序也缺少本期新增组装结果。 改动:补齐 filter 查询夹具,保留真实提示词组装;更新两份集成测试的完整事件顺序,校验组装元数据与实际请求指纹;记录配套 PR 和验证边界。 验证:先复现原失败,修正后主代理以 unittest 重跑两文件46测试通过;ruff check、format 和 diff 检查通过。前端 PR CI 全量2350测试及容器构建已通过;API 全量 CI 随本次推送重跑。 Co-Authored-By: Codex <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动
GitHub 门禁与合并结果
c5b0775e26e1a0e98e8ec080b92e92137b786656。本描述仅同步代码范围及GitHub已有的提交、检查和Actions信息,不包含用户会话、Run、请求指纹、私有运行日志或浏览器验收数据。