Make English the repository working language (#5)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e80cde0ea6
commit
0eaaa54e25
136 files changed
+1515
-1352
No files matched your search
@@ -3,7 +3,7 @@
|
||||
* session_meta pointer for the child session; the server's readMessages expands the child Trace
|
||||
* from that pointer and fills in the origin chain, and the frontend reattaches the child session
|
||||
* to the tool card from that. Also verifies the child session's title is generated by the model
|
||||
* from **the child session's own conversation** (the mock only replies with "child agent TODO
|
||||
* from **the child session's own conversation** (the mock only replies with "Subagent TODO
|
||||
* summary" when the title request sees the child's own answer), and that discovery-based
|
||||
* backfill must not collapse it to NULL.
|
||||
*
|
||||
@@ -60,13 +60,13 @@ test("subagent card survives a reload; child session title is generated from its
|
||||
await page.goto(`${BASE}/chat/${sessionId}`);
|
||||
const ta = page.getByPlaceholder(/输入消息/);
|
||||
await ta.waitFor();
|
||||
await ta.fill("跑子agent");
|
||||
await ta.fill("run a subagent");
|
||||
await page.getByRole("button", { name: "发送" }).click();
|
||||
|
||||
// Parent's final answer (turn 2): the whole turn has ended. Nothing changes with streaming
|
||||
// after this, so assertions are deterministic (turn end collapses the "Reasoning & tools"
|
||||
// group, and child session end collapses the child session card).
|
||||
await expect(page.getByText("命令已执行完成,结果符合预期。")).toBeVisible();
|
||||
await expect(page.getByText("Command finished; the result looks as expected.")).toBeVisible();
|
||||
|
||||
/** Expand the "Reasoning & tools" group → expand the child session card → child session body visible. */
|
||||
const openSubagent = async () => {
|
||||
@@ -78,7 +78,7 @@ test("subagent card survives a reload; child session title is generated from its
|
||||
const card = page.getByRole("button", { name: /子会话/ }).first();
|
||||
await expect(card).toBeVisible();
|
||||
await card.click();
|
||||
await expect(page.getByText("子 agent 报告:3 处 TODO").first()).toBeVisible();
|
||||
await expect(page.getByText("Subagent report: 3 TODOs").first()).toBeVisible();
|
||||
};
|
||||
|
||||
// Under live streaming, the child session card is nested inside the run_subagent tool card.
|
||||
@@ -95,5 +95,5 @@ test("subagent card survives a reload; child session title is generated from its
|
||||
).json();
|
||||
return list.sessions.find((s) => s.sessionId !== sessionId)?.title ?? null;
|
||||
};
|
||||
await expect.poll(childTitle, { timeout: 10000 }).toBe("子 agent 的 TODO 统计");
|
||||
await expect.poll(childTitle, { timeout: 10000 }).toBe("Subagent TODO summary");
|
||||
});
|
||||
Reference in new issue
Block a user