fix: codex review — compact across midnight, typed msg badges, URL punct

- Don't compact after date separator (show full header on new day)
- Don't compact typed messages (result/error/plan keep their badges)
- URL regex stops before trailing ),. so links don't grab punctuation

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-29 21:51:49 +02:00
parent 448030fcee
commit 43fa95d7fe
2 changed files with 5 additions and 2 deletions

View File

@@ -35,7 +35,8 @@ function timeAgo(dateStr: string): string {
function renderContent(text: string) {
// Split on @mentions and URLs
const parts = text.split(/((?:https?:\/\/)[^\s]+|@[\w-]+)/g);
// URL regex: stop before trailing punctuation like ),. etc
const parts = text.split(/((?:https?:\/\/)[^\s),.\]}>]+|@[\w-]+)/g);
return parts.map((part, i) => {
if (part.startsWith("@")) {
return (