Merge remote-tracking branch 'origin/main' into ci-green

# Conflicts:
#	src/platform/i18n.test.ts
Цей коміт міститься в:
l0ng-ai committed 2026-11-11 19:29:59 +08:00
коміт 0a38ee5793
6 files changed
+27 -47

No files matched your search

Створено
+16 -16
Переглянути файл
@@ -791,7 +791,7 @@ dependencies = [
"maybe-owned",
"rustix",
"rustix-linux-procfs",
"windows-sys 0.60.2",
"windows-sys 0.61.2",
"winx",
]
@@ -1522,7 +1522,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d045de693cb712d0b22c6a64be5b953f67b3ce00ab5ad3dd5d8b441886ab8e1a"
dependencies = [
"quote",
"syn 2.0.119",
"syn 3.0.9",
]
[[package]]
@@ -1828,7 +1828,7 @@ dependencies = [
"libc",
"option-ext",
"redox_users",
"windows-sys 0.59.0",
"windows-sys 0.61.2",
]
[[package]]
@@ -2154,7 +2154,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
dependencies = [
"libc",
"windows-sys 0.52.0",
"windows-sys 0.61.2",
]
[[package]]
@@ -5177,7 +5177,7 @@ checksum = "3640c1c38b8e4e43584d8df18be5fc6b0aa314ce6ebf51b53313d4306cca8e46"
dependencies = [
"hermit-abi",
"libc",
"windows-sys 0.52.0",
"windows-sys 0.61.2",
]
[[package]]
@@ -5852,7 +5852,7 @@ dependencies = [
"png 0.18.1",
"serde",
"thiserror 2.0.21",
"windows-sys 0.60.2",
"windows-sys 0.61.2",
]
[[package]]
@@ -5960,7 +5960,7 @@ version = "0.50.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
dependencies = [
"windows-sys 0.59.0",
"windows-sys 0.61.2",
]
[[package]]
@@ -7804,7 +7804,7 @@ dependencies = [
"errno",
"libc",
"linux-raw-sys",
"windows-sys 0.52.0",
"windows-sys 0.61.2",
]
[[package]]
@@ -7872,7 +7872,7 @@ dependencies = [
"security-framework",
"security-framework-sys",
"webpki-root-certs",
"windows-sys 0.52.0",
"windows-sys 0.61.2",
]
[[package]]
@@ -8528,7 +8528,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4"
dependencies = [
"libc",
"windows-sys 0.60.2",
"windows-sys 0.61.2",
]
[[package]]
@@ -9571,7 +9571,7 @@ dependencies = [
"getrandom 0.3.4",
"once_cell",
"rustix",
"windows-sys 0.52.0",
"windows-sys 0.61.2",
]
[[package]]
@@ -10103,7 +10103,7 @@ dependencies = [
"png 0.18.1",
"serde",
"thiserror 2.0.21",
"windows-sys 0.60.2",
"windows-sys 0.61.2",
]
[[package]]
@@ -10525,7 +10525,7 @@ checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e"
dependencies = [
"memoffset",
"tempfile",
"windows-sys 0.60.2",
"windows-sys 0.61.2",
]
[[package]]
@@ -11393,7 +11393,7 @@ version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
dependencies = [
"windows-sys 0.52.0",
"windows-sys 0.61.2",
]
[[package]]
@@ -11414,7 +11414,7 @@ dependencies = [
"objc2-foundation 0.3.2",
"objc2-quartz-core 0.3.2",
"raw-window-handle",
"windows-sys 0.60.2",
"windows-sys 0.61.2",
"windows-version",
]
@@ -11832,7 +11832,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7d6f32a0ff4a9f6f01231eb2059cc85479330739333e0e58cadf03b6af2cca10"
dependencies = [
"cfg-if",
"windows-sys 0.59.0",
"windows-sys 0.61.2",
]
[[package]]
+5 -26
Переглянути файл
@@ -205,38 +205,17 @@ test("keeps latest reply actions visible and quotes into the draft without shift
);
});
test("shows a Quote button when a mouse selection ends, leaving Ctrl+C to copy", async ({ page, context }) => {
test("copies a mouse selection with Ctrl+C and pops up no Quote button", async ({ page, context }) => {
await context.grantPermissions(["clipboard-read", "clipboard-write"]);
const reply = await openReply(page, "Selectable answer");
const text = reply.locator("p").first();
const box = (await text.boundingBox())!;
await page.mouse.move(box.x + 2, box.y + box.height / 2);
await page.mouse.down();
await page.mouse.move(box.x + box.width - 2, box.y + box.height / 2);
await page.mouse.up();
const quote = page.getByRole("button", { name: "Quote", exact: true });
await expect(quote).toBeVisible();
// The button doesn't take focus: Ctrl+C still copies the selection.
await page.keyboard.press("ControlOrMeta+c");
expect(await page.evaluate(() => navigator.clipboard.readText())).toBe("Selectable answer");
await quote.click();
await expect(quote).toHaveCount(0);
const draft = page.getByRole("textbox", { name: "Message", exact: true });
await expect(draft).toBeFocused();
await expect(draft).toHaveValue("> Selectable answer\n\n");
});
test("hides the Quote button on a click elsewhere", async ({ page }) => {
const reply = await openReply(page, "Selectable answer");
const box = (await reply.locator("p").first().boundingBox())!;
await page.mouse.move(box.x + 2, box.y + box.height / 2);
await page.mouse.down();
await page.mouse.move(box.x + box.width - 2, box.y + box.height / 2);
await page.mouse.up();
const quote = page.getByRole("button", { name: "Quote", exact: true });
await expect(quote).toBeVisible();
await page.getByRole("textbox", { name: "Message", exact: true }).click();
await expect(quote).toHaveCount(0);
await page.keyboard.press("ControlOrMeta+c");
expect(await page.evaluate(() => navigator.clipboard.readText())).toBe("Selectable answer");
await expect(page.getByRole("button", { name: "Quote", exact: true })).toHaveCount(0);
});
test("keeps chat history readable and selections free of timestamps and status labels", async ({ page, context }) => {
@@ -315,7 +294,7 @@ test("keeps chat history readable and selections free of timestamps and status l
// The finished turn's reasoning is folded with its work.
await stream.locator("[class*='_turnFold_'] > summary").click();
await stream.locator("[class*='_thought_'] > summary").click();
await expect(stream.getByText("Requesting task context", { exact: true })).toBeVisible();
await expect(stream.locator("[class*='_thoughtPreview_']")).toHaveText("Requesting task context");
await expect(stream.locator("[class*='_thoughtBody_'] strong")).toHaveText("Requesting task context");
await page.evaluate(async (id) => {
const path = "/src/features/agents/store.ts";
+1 -1
Переглянути файл
@@ -160,7 +160,7 @@ export function ProjectPopup({ anchor, onClose }: ProjectPopupProps) {
{e.kind === "action" ? (
<>
<Icon name={e.icon} size={16} className={styles.actionIcon} />
<span className={styles.label}>{e.label}</span>
<span className={styles.label}>{tx(e.label)}</span>
</>
) : (
<ProjectRow m={e.m} active={i === current} />
-1
Переглянути файл
@@ -284,7 +284,6 @@ describe("catalogs", () => {
"Cargo",
"CMake",
"Tailwind CSS",
"JDK:",
]);
const translated = SUPPORTED_LOCALES.filter((locale) => locale !== "en").sort();
+2 -1
Переглянути файл
@@ -1255,5 +1255,6 @@
"{program} {found} is installed, but this project needs {min} or later.": "{program} {found} is installed, but this project needs {min} or later.",
"{program} is not installed.": "{program} is not installed.",
"Create a project, open a folder from disk or clone a repository from version control.": "Create a project, open a folder from disk or clone a repository from version control.",
"New Project": "New Project"
"New Project": "New Project",
"{path} already exists and is not empty": "{path} already exists and is not empty"
}
+3 -2
Переглянути файл
@@ -7572,11 +7572,12 @@
"Application type:": "应用类型:",
"Features:": "特性:",
"Tailwind CSS": "Tailwind CSS",
"JDK:": "JDK:",
"JDK:": "JDK:",
"Search generators": "搜索生成器",
"Generators": "生成器",
"Loading options…": "正在加载选项…",
"{program} {found} is installed, but this project needs {min} or later.": "已安装 {program} {found},但该项目需要 {min} 或更高版本。",
"{program} is not installed.": "未安装 {program}。",
"Create a project, open a folder from disk or clone a repository from version control.": "新建项目、打开磁盘上的文件夹,或从版本控制克隆仓库。"
"Create a project, open a folder from disk or clone a repository from version control.": "新建项目、打开磁盘上的文件夹,或从版本控制克隆仓库。",
"{path} already exists and is not empty": "{path} 已存在且不为空"
}