docs: 同步智能体咨询渲染集成记录
Some checks failed
Electron E2E / Electron E2E (macos-latest) (push) Has been cancelled
Electron E2E / Electron E2E (ubuntu-latest) (push) Has been cancelled
Electron E2E / Electron E2E (windows-latest) (push) Has been cancelled

This commit is contained in:
2026-09-24 14:57:30 +08:00
parent 98559e32a7
commit 39b03a1628
4 changed files with 53 additions and 0 deletions

View File

@@ -4,6 +4,8 @@ This file is the integrated default-branch snapshot. Feature tasks record progre
## Integrated Through
- 2026-09-24:在 `d2150ce5de5cec541f65eba9260d3cdc5172a66d` 上无冲突集成源 `97837cef90baf6bb02cfda0cef7b938081f3c5f7`,保留主线工作台样式。咨询支持 Markdown/表格/代码/公式/图片,普通 JSON 与代码不再被误判为讨论协议;格式失败原文独立折叠留存,工具名称/状态独立展示,修复多余数字 0。配套 Yuxi 源 `02f27f33a8b816589036503f0720d446418c28aa` 在主分支保证 AI 角色投影。合并树重新通过 287 项相关单测、12 项 319/508px 浏览器布局、Renderer typecheck、scoped lint 和 Vite 全目标构建。未推送、打包或部署,真实模型整链验收未执行。旧版已覆盖的原文不能恢复。详见[源任务](tasks/20260924-agent-rendering-a8c2d419.md)、[集成记录](tasks/20260924-merge-agent-rendering-ml-4efb196c.md)及[咨询决定](../10-decisions/ADR-2026-09-22-coding-teacher.md)。用户批准释放旧集成登记,并以当前主线为基线重新登记;原三份未提交文档仍原样保留,不修改历史来源记录。
- 2026-09-24:将客户端源 `8a157be4f62d073744164318e02185aebeaadc09` 从 `eb3dc85a2f0ed8457b7f24684c2da3ab192c2e46` 无冲突快进合入本地 `main`,包括预算修复 `de72b1cd945df373d09402a1cf3a0e9b34832f03` 及其源记录 `248776d8550d67de7ce30802a9f827d432c42a99`。
咨询统一使用运营下发的智能体,移除固定老师/朋友角色、本地人设与按名称限制工具的逻辑;名称、头像、简介、欢迎语和推荐问题取自发布定义。旧合成朋友话题与草稿只读保留,不自动绑定或提交;项目级草稿、已发布版本、学生计费和现有讨论/主动跟进保持。
输入预算区分近似模型 Token 与完整 JSON query 字节,固定配置超限单独提示,修复短问题被错误拦截。源覆盖 323 项相关用例,类型/lint/生产构建、2 项 Electron 交互和 13 项布局测试通过;预算源另有 289 项相关测试。扩展 Main 仍为基线 66 项诊断,无新增。合并未改产品实现,沿用源验证;未推送、打包、安装或做真实付费模型验收。

View File

@@ -0,0 +1,44 @@
# Task: Integrate consultation rendering fixes into main
## Identity
- Task ID: 20260924-merge-agent-rendering-ml-4efb196c
- Mode: Integration
- Branch: main
- Worktree: D:\Datas\OthersProjects\makelore
- Base commit: d2150ce5de5cec541f65eba9260d3cdc5172a66d
- Owner: codex
- Status: Ready for Integration
## Scope
- Merge reviewed source 97837cef90baf6bb02cfda0cef7b938081f3c5f7 (20260924-agent-rendering-a8c2d419) into local main; promote accepted consultation rendering and protocol facts. Paired Yuxi source: 02f27f33a8b816589036503f0720d446418c28aa.
## Intent And Constraints
- Concurrent, Planning and Integration Gates Passed: official start/status match Identity and exclusive integration lock. Read entry/memory-index, own/source/reviewer records, positioning/current-state, teacher ADR, architecture, domain, evidence/reflection/commitments and registered peer scopes. Project goal remains server-distributed consultation agents, Main-owned read tools and student billing. No semantic conflict; preserve current workbench styling and guidance from main.
- User explicitly authorized official release --force of the prior integration owner and new --adopt-existing registration for three known foreign untracked task documents. They remain unchanged and excluded from commits. The new base avoids attributing old cross-machine imports to this integration. No registry fields were manually rewritten.
- Plan: merge exact sources, preserve main styling, rerun relevant client unit/type/build/layout checks, promote accepted facts, pass documentation gates and complete. No push, deployment, paid model request or new subagent. Reuse the completed independent review for unchanged source logic.
- Prior source verification: 287 focused unit tests and 12 browser layout cases passed. Full Main typecheck has 66 existing diagnostics; online production acceptance and recovery of previously overwritten malformed replies remain unverified.
## Outcome
- Source merge committed as 98559e32a75dfbada12a737d7ff0ffda55aa346a. Before the merge commit the drift checker could not recognize the staged foreign source record; exact source-record equality was confirmed, then the unchanged source import was committed and the official drift check passed. No foreign record was edited/adopted to bypass this gate.
- Merged source without conflicts; the only TeacherChatPanel difference from reviewed source is main's two header/avatar styling classes, and README keeps main's styling description. Source task record and implementation imported unchanged otherwise; cloud guidance already on main remains intact. Promoted Markdown/explicit protocol parsing, retained malformed originals and separate typed activity into teacher ADR and architecture.
## Verification
- Existing user-approved independent reviewer completed a bounded integration review: PASS, no findings. Of 19 source-changed files, 17 match source blobs exactly; README/header classes only preserve existing main styling. Confirmed canonical semantics and evidence boundaries. Official task-aware drift passes with all three adopted foreign documents unchanged; no unmerged files remain.
- Merged tree: pnpm exec vitest run teacher-discussion teacher-cloud-activity coding-teacher --maxWorkers=1: 8 files / 287 passed. MAKELORE_LAYOUT_BROWSER_CHANNEL=msedge pnpm exec playwright test tests/e2e/teacher-discussion-layout.spec.ts: 12 passed at 319/508px with fixture API. pnpm run typecheck, ESLint on changed TS/TSX, pnpm run build:vite and whitespace checks passed.
- Initial main checkout dependencies were incomplete: Vitest/tsc launchers missing, then css-calc/tslib resolution failed. Restored only ignored dependencies from the existing lockfile via pnpm install --frozen-lockfile --ignore-scripts --offline --force; no dependency manifest/lock change. All affected checks above subsequently passed.
- Source full Main typecheck remains known to have 66 pre-existing diagnostics; no new Main logic was changed during integration, so its recorded baseline evidence is reused. Source independent review passed. Yuxi paired backend matches its reviewed source exactly.
## Follow-ups
- No push, installer, app restart, deployment or real provider test. Install an updated client and deploy Yuxi API/worker before online acceptance. Existing malformed history is not rewritten. Source checkout cleanup requires separate user consent.
## Promotion Candidates
- Accepted source candidates promoted in integration mode to the teacher ADR, system overview and current-state. No product direction, billing, version or file-permission conflict remains.