Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

docs(mcp-host): document the ZWJ-stripping tradeoff in normalizeTitleText

Diego Zacarias3d4ae791b559
diff --git a/mcp-host/package-lock.json b/mcp-host/package-lock.json
index b2d109755..e4431e759 100644
--- a/mcp-host/package-lock.json
+++ b/mcp-host/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-mcp-host",
- "version": "0.1.322",
+ "version": "0.1.323",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-mcp-host",
- "version": "0.1.322",
+ "version": "0.1.323",
"license": "SEE LICENSE IN LICENSE",
"dependencies": {
"@anthropic-ai/sdk": "^0.32.0",
diff --git a/mcp-host/package.json b/mcp-host/package.json
index a4da7d06f..5c11cea1f 100644
--- a/mcp-host/package.json
+++ b/mcp-host/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-mcp-host",
- "version": "0.1.322",
+ "version": "0.1.323",
"description": "MCP Host - reads Host CRD and provides LLM access via OpenAI/Claude",
"main": "dist/main.js",
"engines": {
diff --git a/mcp-host/src/core/conversation/sessionTitle.ts b/mcp-host/src/core/conversation/sessionTitle.ts
index 742a353c3..cacdb8935 100644
--- a/mcp-host/src/core/conversation/sessionTitle.ts
+++ b/mcp-host/src/core/conversation/sessionTitle.ts
@@ -56,6 +56,10 @@ export function normalizeTitleText(input: string): string {
// code point (`\p{C}`) that `\s` does not cover. Spaces are `\p{Zs}`, not
// `\p{C}`, so word boundaries survive; valid astral chars (emoji) are their
// own category, so only lone surrogates are dropped.
+ // Tradeoff: U+200D (ZWJ) is `\p{C}` too, so a ZWJ emoji sequence
+ // (e.g. πŸ‘¨β€πŸ’») splits into its base emoji. Accepted: a title gates a
+ // destructive rename dialog, so anti-spoofing (no hidden joiners) wins over
+ // emoji fidelity β€” same call the read-side sanitizer makes.
.replace(/\p{C}/gu, '')
.replace(/\s+/g, ' ')
.trim()