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:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user