Skip to content

fix: 修复三个前端缺陷——重复上下文注入、⌘K 编号搜索、聊天需求保存卡片标题 - #1490

Open
Robert0622 wants to merge 7 commits into
Tencent:mainfrom
Robert0622:fix/sweep-1400-human-context-once
Open

Robert0622 wants to merge 7 commits into
Tencent:mainfrom
Robert0622:fix/sweep-1400-human-context-once

Conversation

@Robert0622

Copy link
Copy Markdown
Collaborator

本次修复概述

全量走查 LoopForge(2026-11-27 14:00),使用 CodeBuddy deepseek-v4.1-flash、智谱 glm-5.3-flash、DeepSeek flash、Cursor grok-4.7-high 四类执行器,对私有库真实跑了两条 LOOP(账本缺陷修复 LOOP、账本功能交付 LOOP),覆盖所有 UI 页面、按钮、场景及聊天工作台。发现并修复了以下三个缺陷。


Bug 1:重试 / 退回时人工补充上下文被重复注入

问题原因

web/app/approvals.js 中 withHumanContext(payload) 函数,在把上下文拼到 reason 字段里再发给服务端,而服务端的 engine.composeHumanFeedback 还会把 payload.context 和 payload.reason 再次拼接并追加到 r.HumanContext。结果是同一段上下文出现 2–3 次,还绕过了 8 000 字节上限。

旧代码:

// approvals.js(修复前)
function withHumanContext(payload) {
  const reason = String(payload?.reason || '').trim();
  const context = String(payload?.context || '').trim();
  if (!context) return payload;
  return {
    ...payload,
    reason: reason ? `${reason}\n\n人工补充上下文:\n${context}` : context,
  };
}

复现过程

LOOP B(run-1795760855825419358)implement 节点失败,通过 UI "补充信息,重跑当前节点" 传入上下文「请把 import_csv 的 ValueError 错误信息改成中文…」。

  • implement 节点 feedback:上下文字符串出现 2 次
  • .agentflow/runtime/implement-2-1/task-prompt.md:上下文出现 3 次

修复方案

withHumanContext 只保留 context 字段,不再将其预拼到 reason,由服务端统一组合:

// approvals.js(修复后)
function withHumanContext(payload) {
  const context = String(payload?.context || '').trim();
  if (!context) return payload;
  return { ...payload, context };
}

修复后验证

重启平台(bin-fix),通过 UI 对 LOOP B mr 节点触发"补充信息,重跑当前节点",传入上下文字符串 [CTX-AFTERFIX-MR]…:

  • repro-feedback.py 结果:context occurrences = 1 ✅
  • 任务 prompt 中上下文仅出现 1 次 ✅

注:implement 节点的 feedback 仍保留旧值(2 次),因为那次重跑发生在部署修复版本之前,属于存量数据,不影响修复后行为。


Bug 2:⌘K 命令面板无法按需求编号搜索

问题原因

web/app/access.js 中 commandCatalog 函数构造 issue 的搜索元数据(meta 字段)时,缺少 key 字段,导致搜索时用「LED-2」找不到对应需求,尽管提示语明确写了"可用编号搜索"。

旧代码(issue 条目):

meta: `${i.priority || '—'} · ${issueStatusLabel(i.status)}`

复现过程

  1. 进入需求列表页
  2. 点击 ⌘K(或搜索按钮)
  3. 输入「LED-2」→ 显示「没有匹配结果」❌

复现:LED-2 无匹配
复现:split 搜索

修复方案

在 meta 字段中加入 issueKeyLabel(i),使 key 参与全文搜索:

meta: `${issueKeyLabel(i)} · ${issuePriorityLabel(i.priority)} · ${issueStatusLabel(i.status)}`

修复后验证

用「LED-2」、「LED-1」、「split」分别搜索,均可找到对应需求:

修复后:LED-2 有匹配
修复后:split 有匹配


Bug 3:AI 工作台聊天保存需求时卡片显示错误字段

问题原因

chatbot/src/operations.js 中 cardRows 函数处理 issues_save 工具时,使用 body.name || body.title 显示"名称"行。issues_save 实际用 title 字段保存标题;若 body 里恰好有一个无关的 name 属性(来自工具参数解析),卡片就会显示 name 而非标题,造成信息误导。

复现过程

通过 AI 工作台发起需求创建「按分类汇总支出并校验 CSV 导入」,工具调用卡片显示「名称 ledger-summary-category-csv」(一个内部文件名),而非需求标题。

复现:保存卡片显示 name 而非 title
复现:确认保存后

修复方案

issues_save 工具单独走 body.title:

// operations.js(修复后)
[
  "名称",
  draft.tool === "issues_save" ? body.title : body.name || body.title,
],

修复后验证

重新用 AI 工作台创建需求「月度收支对比图」,卡片正确显示需求标题:

修复后:卡片显示正确标题


回归测试结果

测试套件 修复前 修复后
go vet ./web ./internal/... 0 issues 0 issues ✅
go test ./web ./internal/httpapi 通过 通过 ✅
webtest(Node.js) 385/386(1 个用例编码旧行为) 386/386 ✅
chatbot vitest 535 passed 536 passed ✅
e2e API 167/189 一致 ✅
e2e UI 27 passed 27 passed ✅

webtest 中 approvals.test.mjs 第 42 行原本断言 reason 包含 人工补充上下文(即旧的预拼行为),随本 PR 一并更新为对新契约的断言。

影响面与风险

  • Bug 1:影响所有使用"补充上下文"功能的 retry / reject / approve / resume / pass 操作。修复收敛于前端,仅调整 payload 形状,不改动服务端逻辑,风险低。
  • Bug 2:影响 ⌘K 面板对需求的按编号搜索。纯 UI meta 字段追加,不影响数据写入,风险极低。
  • Bug 3:影响 AI 工作台聊天中 issues_save 的操作卡片展示。仅改工具调用展示层,不影响保存逻辑,风险极低。

🤖 Generated with Claude Code

roberttwang and others added 4 commits November 27, 2026 07:11
The workbench merged 补充上下文 into reason and also sent it as context.
The engine composes reason + context itself (composeHumanFeedback), so the
reworked or retried node got the context twice in its feedback, and a third
time in the human-context section of its prompt. The pre-merged copy also
skipped the server's 8000-byte context cap.

Send reason and context separately, as the 从这里重跑 path already does.

Co-Authored-By: Claude Code <noreply@anthropic.com>
⌘K suggests searching by number, but requirement entries only carried the
title and the raw priority enum, so LED-2 or #12 found nothing and rows
showed "medium". Add the displayed key and the localized priority.

Co-Authored-By: Claude Code <noreply@anthropic.com>
issues_save persists title; when the model also put an ignored name (often
the requirement ID) in the body, the confirmation card showed that as 名称.

Co-Authored-By: Claude Code <noreply@anthropic.com>
The fix to withHumanContext(web/app/approvals.js) now returns
{reason, context} separately instead of pre-merging them.
Update the webtest assertion to match the new contract.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@Robert0622

Copy link
Copy Markdown
Collaborator Author

独立 CR + 私有库部署实测(head de2a0012)

三处修复都在真实部署上复现并验证过了,修复方向正确。本轮实测还找到一个残留问题(P2,不阻塞合入但建议一并处理):人工补充上下文在节点 prompt 里仍会出现 2 次,因为服务端 internal/engine/prompt.go:84-88 会把 run.HumanContext 再追加成一段「## 人工补充上下文」,而 nr.Feedback 里已经由 composeHumanFeedback 拼过一次。

部署

main 5c406d25 与本 PR 各起一套实例(MariaDB 11.8.9,独立库),私有库项目 家庭账本(LED),执行器用脚本化的 CodeBuddy CLI(deepseek-v4.1-flash 通道,模型不参与本次判定),本机 native 沙箱(容器里不能建 user namespace,用 bwrap 替身)。

Bug 1:重试/退回时上下文重复注入

在「待我确认」页面同一个输入框输入固定上下文 [CTX16] 请把错误信息改成中文,并补上性能数据,点「补充信息,重跑当前节点」,抓到的请求体:

  • main:reason 里被预拼了一份,context 又带一份 → 节点 task-prompt.md 第 17、20、39 行共 3 次
  • PR:reason 只留「人工确认重试本节点」,context 一份 → task-prompt.md 第 17、36 行共 2 次

请求体对比

客户端那一处重复确实消失了(3 → 2)。剩下的一次来自服务端:recordHumanContext 把 note 写进 nr.Feedback,renderPrompt 又把 run.HumanContext 追加成独立小节。建议在追加前判断 prompt 里是否已含该 note,或者反馈里不再带上下文。

Bug 2:⌘K 按需求编号搜索

同一份 led 项目数据(LED-1/LED-2/工蜂 #12),⌘K 输入 LED-2:

  • main:没有匹配结果
  • PR:命中「按分类汇总支出 LED-2 · 高 · 进行中」

main
PR

顺带确认:优先级从原始枚举改成了中文标签,medium/high 不再出现在行内。

Bug 3:聊天保存需求卡片

用同样的 issues_save 草稿(name=ledger-summary、title=按分类汇总支出并校验 CSV 导入)在真实会话里跑:

  • main:名称行显示 ledger-summary
  • PR:名称行显示 按分类汇总支出并校验 CSV 导入

main
PR

回归

  • go vet ./...、go build ./... 通过;go test ./web/ 通过(含新增 command_palette_test.go、human_context_test.go)
  • chatbot vitest 536/536;webtest 386/386
  • CI 16/16 SUCCESS、MERGEABLE

结论

修复有效,可以合入。P2 的服务端重复建议后续处理。本轮 token 是作者本人,无法自己 Approve,需要一位非作者评审批准。

roberttwang and others added 2 commits November 27, 2026 09:19
… carry

The retried node's feedback already holds the latest operator note through
composeHumanFeedback, so the human-context section repeated it and the
node prompt carried it twice. Append only the chunks of run.HumanContext
that the rendered prompt lacks; notes accumulated with --- keep reaching
nodes whose feedback does not carry them.

Co-Authored-By: Claude Code <noreply@anthropic.com>
…edback

1e1a619 skipped every note whose text already appeared somewhere in the
prompt. A note that repeats a phrase from the run input or the role prompt
then lost its 人工补充上下文 section and the instruction to prefer it.

Render the section from Run.HumanContext as before and remove only the
copies recordHumanContext folded into the node's feedback, so the
上一轮反馈 line keeps the retry reason and each note appears once, also
after successive retries and resumes.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@Robert0622

Copy link
Copy Markdown
Collaborator Author

P2 复核:已修复(head 2a411f34)

我上轮提的「同一段人工补充上下文在节点 prompt 里出现两次」在新 head 上修好了,做法也比我建议的更干净:不再让反馈行带上上下文,而是由 ## 人工补充上下文 段统一承载,feedbackWithoutHumanContext 只保留重试原因。

同一复现(带 manual gate 的 agent 节点,在「待我确认」页输入 [CTX16] 请把错误信息改成中文,并补上性能数据 后点「补充信息,重跑当前节点」):

版本 task-prompt.md 中 CTX16 出现次数
main 5c406d25 3 次(第 17/20/39 行,反馈里拼了两遍)
上轮 de2a0012 2 次(第 17/36 行)
本轮 2a411f34 1 次(第 33 行;第 14 行「上一轮反馈:人工确认重试本节点」只留原因)

复现对比

回归(新 head 重新构建、重启同一套私有库部署):

  • go build ./...、go vet ./internal/engine/ 通过
  • go test ./web/ ./internal/domain/ ok;engine 聚焦用例(HumanContext / Prompt / Approve / RecordHumanContext)ok,含新增 TestPromptRendersEachHumanContextNoteOnce、TestHumanContextReachesTheNodeOnce
  • chatbot vitest 536/536
  • 之前三处修复也重新确认:⌘K 搜 LED-2 命中、保存卡片显示标题、客户端请求只带 context

CI 在 2a411f34 上还有 core / browser / first-run 在跑,其余 13 项已 success;跑完前我按「可合入、待 CI」记。token 是作者本人,仍需一位非作者 Approve。

@Robert0622

Copy link
Copy Markdown
Collaborator Author

残留 P2 已修:节点 prompt 里人工补充上下文只出现 1 次

head de2a0012 → 2a411f3(1e1a619 之上又改了一处)。

修法

  • internal/engine/prompt.go:渲染时先算 feedbackWithoutHumanContext(feedback, run.HumanContext),把 recordHumanContext 经 composeHumanFeedback 折进 feedback 的说明去掉,再把结果填进 {{feedback}};## 人工补充上下文 小节仍然由 run.HumanContext 完整渲染。于是「上一轮反馈」只剩重试原因,说明只在小节里出现一次。
  • 为什么没沿用 1e1a619 的「prompt 里已含这段就跳过追加」:操作员的说明文字如果恰好也出现在运行输入或角色 prompt 里,整段小节(含「请优先采信」的指令)会被吞掉。已补用例 prompt_context_test.go 的第三个场景覆盖这一点,1e1a619 在该用例上失败、2a411f3 通过。
  • 连续重试(Run.HumanContext 用 --- 累积)和切回 SOP 的恢复路径都覆盖了:旧说明被去掉后仍由小节呈现,恢复时拼在 feedback 里的早先说明同理。

单测

  • 新增 internal/engine/human_context_prompt_test.go(6 个子用例:reason+context、只有 context、连续两次重试、恢复时早先 feedback、feedback 不含说明、无 HumanContext 时不改写)。
  • TestRecordHumanContextPersistsForRetryAndPrompt 加了断言:prompt 里说明只出现 1 次且重试原因仍在。
  • 在 de2a0012 上这些用例失败(说明出现 2–3 次),2a411f3 全过。
  • go vet、go build ./...、go test ./internal/engine/ ./web/ 通过(TestEnsureRunBrowserRestoresReclaimedWorkspaceWithStaleRun 在这台容器上因无 Chromium 失败,基线同样失败)。

部署实测(CodeBuddy deepseek-v4.1-flash,私有库 loopforge-cr1490-1127-17,native 沙箱)

两套部署:de2a0012(对比)与 2a411f3。私有项目建 LOOP「开发 → 必过门禁」,需求派发后依次:重试带 [CTX1490-A]、再重试带 [CTX1490-B]。

  • 第 2 次尝试的 task-prompt.md:de2a0012 的「上一轮反馈」里带着 人工补充上下文:[CTX1490-A]…,小节里又一份(共 2 份);2a411f3 只剩「上一轮反馈:人工确认重试本节点」,说明只在 ## 人工补充上下文 里(1 份)。
  • 第 3 次尝试(两个说明都在 Run.HumanContext 里):de2a0012 共 3 份;2a411f3 每个说明各 1 份。
  • 行为没有退化:2a411f3 上模型读到 [CTX1490-B] 的指示后真的在仓库里新建了 NOTE.md(第一行 CTX-1490-B,第二行说明 divide 除零抛 ValueError),门禁通过、run succeeded;另一套(每次都会失败的门禁)上第 3 次尝试按预期停在 waiting,prompt 保留可查。

de2a0012:说明出现两次
2a411f3:说明只出现一次

crispinhu27
crispinhu27 previously approved these changes Nov 27, 2026

@crispinhu27 crispinhu27 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

复审(初审判定发布后新 head 的复核):APPROVE

版本:head 2a411f34,base main 5c406d25。本轮先对 de2a0012 完成初审,随后作者推送 1e1a619c、2a411f34 两个提交,均只改 internal/engine 的 prompt / human context 渲染,前端文件与 de2a0012 一致。

三个修复点(在 de2a001 上验证,前端在 2a411f3 上与之一致)

  • 重复上下文注入:用前端真实产出的请求体对照,base 会把上下文预拼进 reason 与 context 一起发送,head 只发 context;喂给服务端真实 engine.Reject/Retry 后节点 feedback 内标记次数由 2 降为 1,8000 字节上限重新生效。approve/reject/retry/pass/resume 五条路由都单独读取 context,不会丢上下文。
  • ⌘K 编号搜索:真实 Chromium 对照,base 搜 LED-2 / led-1 无匹配,head 均命中并显示 LED-2 · 高 · 进行中,标题搜索不变。
  • 聊天保存卡片标题:issues_save 只有 title 字段,卡片改取 body.title 不丢信息,其它工具仍走 name || title,有 vitest 覆盖。

增量 de2a0012..2a411f34(5 文件 +153/−33)

  • 1e1a619c 只追加 prompt 尚未携带的备注分片;2a411f34 改为「人工补充上下文 段总是完整追加 + 从 feedback 行里剥掉重复备注」(feedbackWithoutHumanContext),并补了 human_context_prompt_test.go。
  • 中间版本 1e1a619c 存在一个回归:走 {{humanContext}} 占位符的 prompt 会整段丢掉「请优先采信」说明,且既有用例 TestPromptObservabilityAlignAndResumeRemainingBranches 确定性失败。在 2a411f34 上重跑该用例以及其他 prompt / human context 用例全部 PASS,TestPromptRendersEachHumanContextNoteOnce 的 6 个子场景(reason+context、仅 context、多次重试、resume 恢复、无上下文保持原样)全部通过,说明每个备注只出现一次且段落不再丢失。
  • TestApproveWithHumanContextReachesDownstream 在本机失败仅因容器不允许非特权 user namespace(bwrap),base 上同样失败,非本次改动引入。

其他验证

  • go test ./web(含两个新增 node 驱动用例)与 go vet ./web 通过;新增用例在 base 上失败、head 上通过;webtest 相关 7 文件 36 用例全部通过;chatbot vitest 536/536。
  • CI:head 2a411f34 全部 check 通过(16/16)。

说明(非阻塞)

  • ⌘K 结果仍受既有 slice(0,12) 截断,同前缀编号很多时可能看不到目标项,base 同样如此。
  • 英文优先级关键字(high/medium)不再命中,属把原始枚举换成中文标签的展示变更。
  • 本机未跑 webtest 全量(依赖 CI 的 platform-required,已通过),聊天卡片未做浏览器级渲染。

结论:APPROVE。三个前端缺陷修复经隔离复现与浏览器验证成立,增量在最新 head 上未发现新问题。

@Robert0622

Robert0622 commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator Author

11-28 04:00 全量走查在真实部署上又复现了这个问题,并验证了与本 PR 相同的修法(只改 withHumanContext,不再把 context 拼进 reason):

  • 环境:main fd039e51、MariaDB、私有库、CodeBuddy deepseek-v4.1-flash 执行 implement。
  • main:在人工验收处退回「开发实现」并填写补充上下文。implement 节点的 feedback 里出现了两次「人工补充上下文:…」,实际提示词 .agentflow/runtime/implement-2-1/task-prompt.md 里同一段上下文共出现 3 次(返工说明里 2 次,加上平台的「## 人工补充上下文」段落 1 次)。
  • 修复后:同一个运行再次退回,请求体为 {"reason":"验证未通过,请上游修复后重新提交","context":"README 示例里再补一个 limit=0 的情况…"}。feedback 里上下文只出现 1 次,提示词 implement-3-1/task-prompt.md 里共 2 次,符合设计。
  • webtest:本轮本地补了一条断言,检查审批卡退回和重试时只发送原始 reason 和单独的 context。它在 main 上失败,加上相同修法后通过。如需要,可以把它补进本 PR,见下方附的用例代码。
main 的提示词 修复后的提示词

建议合入。

用例代码(webtest/tests/approvals.test.mjs)
test('rework and retry send the typed reason and the context once, apart', async (t) => {
  const app = await loadApp();
  t.after(app.close);
  const run = {
    id: 'rework-run', projectId: 'project-1', status: 'waiting', workflowId: 'flow-rework', createdAt: '2026-10-20T10:00:00Z',
    executionContext: { responsibleUserId: 7, projectId: 'project-1' },
    workflowSnapshot: {
      id: 'flow-rework', name: '交付 LOOP', version: 1, revision: 1,
      nodes: [
        { id: 'implement', name: '开发实现', type: 'agent' },
        { id: 'gate', name: '人工验收', type: 'approval', rejectTo: 'implement', taskPrompt: '确认结果' },
      ],
      edges: [{ source: 'implement', target: 'gate' }],
    },
    nodes: { implement: { status: 'succeeded' }, gate: { status: 'waiting_approval' } },
  };
  app.router.get('/api/runs/rework-run', run);
  app.router.get('/api/runs', [run]);
  app.router.get('/api/tasks', []);
  app.router.get('/api/issues', []);
  app.router.post('/api/runs/rework-run/reject', { ok: true });
  app.router.post('/api/runs/rework-run/retry', { ...run, status: 'running' });
  app.evaluate(`
    state.currentUser={id:7,loginName:'reviewer'};
    state.data.runs=${JSON.stringify([run])};
    state.data.tasks=[];state.data.issues=[];
    window.afPrompt=async()=> '补充 README 后重跑';
  `);
  await app.evaluate(`renderApprovals(true)`);
  const card = app.document.querySelector('#approvalList .ap-card');
  card.querySelector('[data-human-context]').value = '同时补充 limit<=3 的示例';
  const reject = card.querySelector('[data-reject]');
  assert.ok(reject, 'the approval card offers rework to the upstream node');
  reject.click();
  await settle(8);
  const sent = app.router.calls.find(c => c.path === '/api/runs/rework-run/reject');
  assert.ok(sent, 'rework posts to the server');
  // The server appends "人工补充上下文" itself; a reason that already carried
  // the context made the rework note repeat it.
  assert.equal(sent.body.reason, '补充 README 后重跑');
  assert.equal(sent.body.context, '同时补充 limit<=3 的示例');
  assert.equal(sent.body.targetId, 'implement');

  app.evaluate(`
    const root=document.createElement('div');root.className='human-decision';
    root.innerHTML='<textarea data-human-context>先看失败日志</textarea><button id="retry-ctx"></button>';
    document.body.append(root);
    window.afPrompt=async()=> '重跑当前节点';
  `);
  await app.evaluate(`retryWaitingNode('rework-run','gate',document.querySelector('#retry-ctx'))`);
  const retry = app.router.calls.find(c => c.path === '/api/runs/rework-run/retry');
  assert.ok(retry, 'retry posts to the server');
  assert.equal(retry.body.context, '先看失败日志');
  assert.doesNotMatch(String(retry.body.reason || ''), /人工补充上下文|先看失败日志/);
});

🤖 Generated with Claude Code

…le has it

Tencent#1517 moves the requirement key rule into issueKeyFor and makes issueKeyLabel
delegate to it. The palette test slices issueKeyLabel out of the bundle on its
own, so once both PRs are on main it throws "issueKeyFor is not defined" and
go test ./web fails. Load issueKeyFor too when it exists, so the test passes
whichever PR merges first.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@Robert0622

Copy link
Copy Markdown
Collaborator Author

新 head c5588626:修复和 #1517 一起合入后 go test ./web 失败的问题(只改测试)

在 2a411f34 后追加 1 个提交,没有强推,只改了 web/command_palette_test.js。

问题:本 PR 的 ⌘K 测试只从 bundle 里截出 commandCatalog、renderCommandResults、issueKeyLabel 等函数来跑。#1517 把编号规则抽到 issueKeyFor,issueKeyLabel 改成调用它。两个 PR 都进 main 后,这个测试会报 ReferenceError: issueKeyFor is not defined,TestCommandPaletteFindsRequirementsByKey 失败。两个 PR 各自的 CI 都是绿的,只有后合入的那一方才会暴露出来。

修法:bundle 里有 function issueKeyFor( 时一起加载;没有时(当前 main)行为不变。所以不管 #1517 先合还是本 PR 先合,测试都能过。

验证:

需要重新批准:新提交会让之前的批准失效。

@Robert0622

Copy link
Copy Markdown
Collaborator Author

复核 c5588626:只改了测试,合并顺序问题已修好

2a411f34..c5588626 只追加了 1 个提交,只改 web/command_palette_test.js:bundle 里有 issueKeyFor 时(也就是 #1517 进了 main 之后),测试会把它一起载入;没有时行为和原来一样。产品代码没变,#1490 之前的实测结论仍然成立。

本地合并树验证(main fd039e51 先合 #1517 45093f42,再合 #1490):

合并树 go test ./web/
main + #1517 + #1490 2a411f34 FAIL:TestCommandPaletteFindsRequirementsByKey,ReferenceError: issueKeyFor is not defined(复现了这个问题)
main + #1517 + #1490 c5588626 ok;go vet ./web/ 通过;webtest 396/396 通过
只有 #1490 c5588626(不含 #1517) ok

结论:可以合入,两边谁先合都不会让 go test ./web 失败。注意:这次推送让 crispinhu27 在 2a411f34 上的 Approve 被 dismiss 了,需要按 c5588626 重新批准。写这条评论时 CI 还有 3 项在跑,其余 12 项都通过。

@crispinhu27 crispinhu27 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

APPROVE(复审:仅有一个测试文件的增量)

版本:head c5588626,base 5c406d25。上一次 APPROVE(2a411f34,review 6086409972)因新推送被 dismiss,本轮复审增量 2a411f34..c5588626:仅 web/command_palette_test.js +4/−1。

增量

command_palette_test.js 从 bundle 里切片加载 issueKeyLabel,而 #1517 让 issueKeyLabel 委托新的 issueKeyFor。本提交在 bundle 含 issueKeyFor 时才追加加载它,使两 PR 无论谁先合入 go test ./web 都通过。

实际执行的验证

  • head c5588626 单独:go test ./web 通过(7.7s)。
  • 把 #1517(45093f42)合进 c5588626:go test ./web 通过(8.2s)。
  • 同一合并放在上一版 2a411f34 上复现:go test ./web 失败,ReferenceError: issueKeyFor is not defined(web/command_palette_test.js:38)——确认这个增量修的是真实存在的跨 PR 冲突,而不是空改。
  • 增量未触碰产品代码,2a411f34 上已完成的三个前端缺陷验证结论不受影响(重复上下文注入、⌘K 编号搜索、聊天保存卡片标题,见 review 6086409972)。

结论:APPROVE。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants