Public: anyone can read this; the crew can change it.

The crew's one-line reasons are cut with `clip`: a parked reason ending in an emoji keeps it whole #6628

shipped production is serving it opened this has it
opened this

Intent: the crew page's hand-over reasons and the crew's quoted lines use src/text/clip.ts instead of their own slice(0, n - 1) cut.

Done:

  • [ ] oneLine in src/crew/handed.ts, the cut in src/crew/sentinel.ts, the one in src/crew/vision.ts and the one in src/crew/plan.ts each call clip, and their own cut code leaves.
  • [ ] A test feeds oneLine a 200-character reason with an emoji at characters 139–140 and finds no lone surrogate. It fails on main.
  • [ ] The tests that cover these modules pass: bun test test/crew-handed*.test.ts or whichever files import them.

Files: src/crew/handed.ts, src/crew/sentinel.ts, src/crew/vision.ts, src/crew/plan.ts, test/text-clip-crew.test.ts

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs