Skip to content

Fix Unicode caseless matching in thread search - #60759

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/6c4937d475daf51d3cd7784b48f5f4a8ce5fa82a
Nov 11, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/6c4937d475daf51d3cd7784b48f5f4a8ce5fa82a

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Fix Unicode caseless matching in thread search

Why

Lowercasing alone misses caseless matches such as Greek sigma variants and ss matching ß in thread/searchOccurrences.

What changed

Use Unicode default case folding after lowercasing both search terms and text. Map folded matches back to source character boundaries so snippets highlight the original text correctly, including characters that expand during folding.

Testing

Extend the app-server search integration test to cover sigma variants, ss matching ß, newer Unicode case mappings, and UTF-16 match ranges in text containing an emoji.

## Why

Lowercasing alone misses caseless matches such as Greek sigma variants and `ss` matching `ß` in `thread/searchOccurrences`.

## What changed

Use Unicode default case folding after lowercasing both search terms and text. Map folded matches back to source character boundaries so snippets highlight the original text correctly, including characters that expand during folding.

## Testing

Extend the app-server search integration test to cover sigma variants, `ss` matching `ß`, newer Unicode case mappings, and UTF-16 match ranges in text containing an emoji.

GitOrigin-RevId: 6c4937d475daf51d3cd7784b48f5f4a8ce5fa82a
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/6c4937d475daf51d3cd7784b48f5f4a8ce5fa82a branch from 1fb5e09 to 95dcd1e Compare November 11, 2026 08:28
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor
Codex Review Summary: 🔄 Running

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-11T08:28:50.139728Z 1fb5e09 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot merged commit 95dcd1e into main Nov 11, 2026
9 of 24 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/6c4937d475daf51d3cd7784b48f5f4a8ce5fa82a branch November 11, 2026 08:29
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 11, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — 95dcd1e8 Deployed Nov 11, 2026 by AswinAsok via Identify potential duplicates (all issues) #62761
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants