Repository navigation
Closed
Labels
vouch:trustedAuthor is trusted by repo permissions or the VOUCHED list.
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
packages/contracts or packages/shared
Steps to reproduce
- Open a thread that contains the message “Travel notes for İstanbul.”
- Open Find in Thread.
- Search for
istanbul.
Expected behavior
Find in Thread finds and highlights İstanbul.
Actual behavior
The counter shows zero matches.
Impact
Minor bug or occasional failure. This affects anyone who searches with a lowercase i for a word written with the Turkish capital İ.
Version or commit
main at 9246c3235e. The cause is at packages/shared/src/threadSearch.ts:11.
Environment
Linux x64 boat.dev default machine, a fresh checkout.
Logs or stack traces
Find in thread counts İstanbul as a match for istanbulAutomated repro
Fails in 2 of 2 runs on main: apply the patch with git apply, then run the command.
diff --git a/scripts/scenarios/thread-find-matches-dotted-capital-i.e2e.ts b/scripts/scenarios/thread-find-matches-dotted-capital-i.e2e.ts
new file mode 100644
index 0000000000..1bdf366646
--- /dev/null
+++ b/scripts/scenarios/thread-find-matches-dotted-capital-i.e2e.ts
@@ -0,0 +1,34 @@
+import { expect } from "e2e";
+
+import { test, WEB } from "./t3.ts";
+
+test("Find in thread matches İstanbul with istanbul", WEB, async ({ t3, app, screen, browser }) => {
+ const project = await t3.project("demo");
+ const thread = await t3.thread({
+ project,
+ title: "Travel notes",
+ messages: ["Travel notes for İstanbul"],
+ });
+ await t3.open(thread);
+ await screen.getByRole("button", /^Agent Travel notes for İstanbul/).tap();
+ await browser
+ .locator("[data-user-message-body]")
+ .getByText("Travel notes for İstanbul", { exact: true })
+ .waitFor();
+
+ await browser.keyboard.press("Control+f");
+ await screen.getByRole("searchbox", "Find in thread").fill("istanbul");
+ try {
+ await expect
+ .poll(
+ () =>
+ browser.evaluate<string>(
+ 'document.querySelector("[data-thread-find-bar] span[aria-hidden]")?.textContent ?? ""',
+ ),
+ { message: "Find in thread counts İstanbul as a match for istanbul" },
+ )
+ .toBe("1/1");
+ } finally {
+ await app.screenshot("istanbul-find-result");
+ }
+});pnpm scenarios:prove scripts/scenarios/thread-find-matches-dotted-capital-i.e2e.ts --base mainWorkaround
No response
Metadata
Metadata
Assignees
Labels
vouch:trustedAuthor is trusted by repo permissions or the VOUCHED list.


Activity