Skip to content

[Bug]: Find in Thread misses words with a dotted capital İ #39289

Closed

Description

@StiensWout

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

  1. Open a thread that contains the message “Travel notes for İstanbul.”
  2. Open Find in Thread.
  3. Search for istanbul.

Expected behavior

Find in Thread finds and highlights İstanbul.

Actual behavior

The counter shows zero matches.

istanbul find result

failure

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 istanbul
Automated 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 main

Workaround

No response

Activity

  1. added
    vouch:trusted
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    vouch:trusted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions