From 38ebcaf24e3e1c6f9ac66efa80efd6cb0fe765a8 Mon Sep 17 00:00:00 2001 From: EMRG Evolution Date: Tue, 11 Aug 2026 13:56:49 +0800 Subject: [PATCH] emrg: evolution_prompt quick-ref for #668 (workspace panel P3.2 artifacts re-scope) --- emrg/server/evolution_prompt.md | 1 + 1 file changed, 1 insertion(+) diff --git a/emrg/server/evolution_prompt.md b/emrg/server/evolution_prompt.md index b2b8c32..612abc3 100644 --- a/emrg/server/evolution_prompt.md +++ b/emrg/server/evolution_prompt.md @@ -410,6 +410,7 @@ When reading rants, follow these rules: > - GUI workspace panel P2 framework (#664 宿主 rant 2026-08-11T12:20:35 阶段 2 框架层:`#result-resizer` 绝对定位拖拽手柄(不进 #app flex 流 R6-②,防 WebContentsView bounds x 偏移)+ `.dragging` 抑制 width transition(R1-①);折叠(⌘\)保留 40px 窄条(#615)且 **panelWidth 与 collapsed 分离持久化**(两个 localStorage 键,展开恢复拖拽宽度);Tab 栏 = 静态「文件/产物」+ 打开文件 Tab 条(`#result-tabbar`)——`openFileTab/closeFileTab/activateTab`(同路径去重、上限 8 淘汰最旧、可关闭、active 高亮);per-session 容器模式(缺口 5):`openedTabsBySid/artifactsBySid` 状态表 + `switchSession(sid)` 接入 app.js switchSession/newSession + `addToolResult(data, sid)` 按事件 sid 归类;产物卡片(WorkBuddy P1)暂保留至 P3.2 改 write/edit 登记;i18n zh/en 4 键;+5 GUI 测试 188→193;合并 4c71b25) ✅ > - GUI workspace panel P3 file browser + viewer (#665 宿主 rant 2026-08-11T12:20:35 阶段 3 slice 1:新模块 `file-tree.js`——懒加载目录树(根 = 激活会话 projectPath,app.js switchSession/newSession/bindUi 三处 `FileTree.setSession(sid, path)` 接线,openSessions 优先回退 projectDir);目录行点击 → `emrg.listFiles`(P1 daemon)**首次展开拉取 + 缓存**(折叠再展开不重复拉取);文件行点击 → `openFileTab(sid, path)`;查看器基础版 `#result-viewer` pane:`emrg.readFile` 内容转义渲染 `
`(per-tab 缓存不重拉)、二进制 → i18n 提示用系统工具、读失败 → 错误提示、头部路径 + 系统工具打开按钮;`openFileTab/closeFileTab` 空 sid 归当前会话桶(对齐 switchSession+setSession 成对接线);i18n zh/en 6 键;+5 GUI 测试 193→198;合并 7c4e953) ✅
 > - GUI result-panel per-session artifact isolation (#666 外部贡献 pm25coder:后台会话 `tool_finished` 只入 sid 桶**不渲染激活 pane**(防污染;切回时 `renderArtifacts()` 从桶恢复 DOM,镜像 renderTabbar 模式)——修掉 P2.2 桶化但无条件渲染的缺口;`switchSession`/`init` 走 `renderArtifacts`;+2 GUI 测试(后台只入桶不渲染 / switchSession 按 sid 重渲染恢复);合并 a1d8d8d) ✅
+> - GUI workspace panel P3.2 artifacts re-scope (#668 宿主 rant 2026-08-11T12:20:35 阶段 3 slice 2:产物 Tab 改 **write/edit 成功文件登记**(决策点 3——bash/read 工具卡移除,错误跳过);**同路径去重**(重写更新既有条目移顶 R6-①)+ **per-session 上限 100**(R7-⑦);记录形状 `{path,name,tool_name,elapsed}` 存 sid 桶(#666 隔离保留);**extractFilePath 改进**(R4-①:优先首个 `/` 开头绝对路径段——write `Created /path (N chars)` / edit `Made 1 replacement in /path` 均命中,去扩展名白名单依赖,Makefile/.env/Dockerfile 可提取);产物行 = 文件名+完整路径,点击 → 查看器 Tab(系统工具在查看器头部);CSS `.artifact-row`;WorkBuddy P1 卡片测试改 P3.2 语义 +2 新测试(去重+上限 / 无扩展名提取+点击开 Tab),GUI 200→202;合并 07de9be) ✅
 
 #### 2.2 Latest GitHub code changes