Repository navigation
fix(server): workflow reference titles no longer end in half an emoji - #43392
juliusmarminge merged 3 commits into
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
…tle test Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
EvidenceCreated real Linear issues with 299 ASCII characters followed by 🚀 and a suffix, plus a 298-character control. On fresh databases, opened Workflows and ran a single step reading each issue three times. The scenario runner exited 0: failed on base and passed on head.
The control preserved the complete rocket within 300 units and emitted one update on both commits. The chip visually truncates these titles; the linked server traces show the character boundary and update difference. Not shown:
|
…pingdotgg#43392) Co-authored-by: Julius Marminge <julius0216@outlook.com> (cherry picked from commit b7c4f0a)
…pingdotgg#43392) Co-authored-by: Julius Marminge <julius0216@outlook.com> (cherry picked from commit b7c4f0a)
…pingdotgg#43392) Co-authored-by: Julius Marminge <julius0216@outlook.com> (cherry picked from commit b7c4f0a)
…pingdotgg#43392) Co-authored-by: Julius Marminge <julius0216@outlook.com> (cherry picked from commit b7c4f0a)


Problem
A workflow run keeps the title of each issue or pull request it touches, cut to 300 UTF-16 code units. The cut was a plain
slice, so when an emoji straddles code units 299 and 300 it keeps the emoji's first half. SQLite stores that half as U+FFFD, so the run's references come back with a title ending in�.The broken half also defeats the store's "nothing new" check. The fresh cut still holds the lone half, but the stored row holds
�, so the two never match. Every later touch of the same issue or pull request then rewrites the row and publishes a change notice, even when nothing changed.Change
referenceNotednow cuts one code unit earlier when the cut would split a surrogate pair, using thesplitsSurrogatePaircheck the step result, failure detail, run title and subject title cuts in the same file already use (#41723, #41808, #41924).Scope
A small fix of an obvious bug, so no issue needed. This is the same broken-character cut those earlier fixes made in the same file, on the one title cut they did not cover. Every other text cut in
apps/server/src/workflows/already guards surrogate pairs.Verification
An AI agent ran each check below.
WorkflowStore.test.tschecks three titles:a+ 🚀 is stored as 299a.a+ 🚀, with the emoji ending exactly at 300, keeps the emoji.ais stored as 300a.mainthe test fails, because the stored title ends in�. With the fix,WorkflowStore.test.tspassed 30 of 30 tests in each of 3 runs.noteFor→WorkflowStore.referenceNotedpath ran against a SQLite file built by the real migrations, with a title of 299a+ 🚀 + more text, noting it once and then twice more unchanged:mainreferences()sqlite3 hex(title))…61 EF BF BD(�)…61 61 61vp run check:changedpassed.Generated with Claude Opus 5.5 in T3 Code Nightly