amosblomqvist
8a6eab0b6a
titles: smart truncation — the cut snaps to word boundaries
...
Owner round (2026-10-06, release polish #3 ): first messages are always
long, and the auto-title's hard 72-char cut landed mid-word. The cut now
snaps to the last word boundary at or under TITLE_MAX_CHARS (72, exported
and tunable); whitespace collapses first so boundaries are single-space.
The one special case (owner-specified): a single word longer than the cap
— rare but real: identifiers, URLs — splits at the cap. A boundary landing
exactly at the cap is a clean cut. Seam unchanged: titleFromPrompt
(core/contracts/graph.ts), applied once server-side at chat creation.
Pinned in tests/title-from-prompt.test.ts (6).
2026-10-06 07:49:38 +03:00
..
2026-09-19 15:24:26 +03:00
2026-10-04 19:50:20 +03:00
2026-09-25 21:24:43 +03:00
2026-09-22 00:02:07 +03:00
2026-09-19 22:52:40 +03:00
2026-09-19 20:54:16 +03:00
2026-09-24 23:20:59 +03:00
2026-10-04 01:19:54 +03:00
2026-09-28 23:30:11 +03:00
2026-10-04 01:19:54 +03:00
2026-10-04 21:36:14 +03:00
2026-10-02 17:38:48 +03:00
2026-09-23 15:37:34 +03:00
2026-10-06 04:46:26 +03:00
2026-10-05 22:17:33 +03:00
2026-10-06 00:38:15 +03:00
2026-09-24 19:33:35 +03:00
2026-09-28 22:37:18 +03:00
2026-09-23 03:53:57 +03:00
2026-09-30 01:19:03 +03:00
2026-09-26 21:45:51 +03:00
2026-09-27 04:36:00 +03:00
2026-10-04 23:57:00 +03:00
2026-10-06 05:31:00 +03:00
2026-10-04 21:55:54 +03:00
2026-10-02 17:04:22 +03:00
2026-10-02 17:31:35 +03:00
2026-09-25 20:12:57 +03:00
2026-09-23 00:19:16 +03:00
2026-09-25 23:32:13 +03:00
2026-09-12 06:02:40 +03:00
2026-09-30 04:04:29 +03:00
2026-10-05 06:26:21 +03:00
2026-09-23 20:20:36 +03:00
2026-09-30 03:22:52 +03:00
2026-09-30 17:44:37 +03:00
2026-10-04 00:53:29 +03:00
2026-09-23 03:53:57 +03:00
2026-10-05 06:08:51 +03:00
2026-09-25 02:39:11 +03:00
2026-09-30 04:52:27 +03:00
2026-09-22 16:56:44 +03:00
2026-10-04 19:50:20 +03:00
2026-09-19 13:16:34 +03:00
2026-09-19 15:24:26 +03:00
2026-09-19 16:52:09 +03:00
2026-09-27 08:55:13 +03:00
2026-09-26 01:52:47 +03:00
2026-09-27 08:55:13 +03:00
2026-10-02 00:44:02 +03:00
2026-10-05 21:44:34 +03:00
2026-10-06 03:47:05 +03:00
2026-10-05 02:22:04 +03:00
2026-10-06 04:18:26 +03:00
2026-09-29 04:39:01 +03:00
2026-09-26 00:37:46 +03:00
2026-10-05 21:44:34 +03:00
2026-10-04 20:21:18 +03:00
2026-10-04 00:53:29 +03:00
2026-10-04 20:21:10 +03:00
2026-09-25 23:32:13 +03:00
2026-10-03 01:03:29 +03:00
2026-10-04 19:50:20 +03:00
2026-10-05 04:55:59 +03:00
2026-10-05 07:09:16 +03:00
2026-10-05 22:51:08 +03:00
2026-10-06 03:55:14 +03:00
2026-10-02 21:18:51 +03:00
2026-09-29 22:41:52 +03:00
2026-10-02 02:09:38 +03:00
2026-09-23 22:05:58 +03:00
2026-09-19 13:16:34 +03:00
2026-10-05 06:51:23 +03:00
2026-10-05 06:08:51 +03:00
2026-09-27 00:47:48 +03:00
2026-10-06 04:26:34 +03:00
2026-10-03 03:01:51 +03:00
2026-09-30 03:22:52 +03:00
2026-10-05 05:18:26 +03:00
2026-10-06 00:38:15 +03:00
2026-10-05 05:18:26 +03:00
2026-09-26 23:53:43 +03:00
2026-09-22 00:02:07 +03:00
2026-10-02 17:15:17 +03:00
2026-09-22 00:02:07 +03:00
2026-09-30 04:30:25 +03:00
2026-09-24 20:06:22 +03:00
2026-10-05 03:46:32 +03:00
2026-09-28 22:37:18 +03:00
2026-10-05 22:51:08 +03:00
2026-09-27 08:55:13 +03:00
2026-09-30 16:38:45 +03:00
2026-09-22 21:55:33 +03:00
2026-09-28 23:30:11 +03:00
2026-10-04 21:34:24 +03:00
2026-09-26 01:52:47 +03:00
2026-09-22 22:05:27 +03:00
2026-10-06 07:49:38 +03:00
2026-10-04 20:21:10 +03:00
2026-10-04 00:53:29 +03:00
2026-09-27 08:55:13 +03:00
2026-09-25 02:26:37 +03:00
2026-10-02 17:07:03 +03:00
2026-10-04 19:50:20 +03:00
2026-09-25 23:32:13 +03:00
2026-10-04 21:34:24 +03:00