fix(sidebar): declutter session items — drop message count, model, and source-tag badges (v0.50.64)

Squash-merges PR #584 by @aronprins.

Drops the meta row (message count, model slug, source-tag badge) from every sidebar session item. Each session now renders as a single title line — visible session count roughly doubles at typical viewport height.

Changes merged verbatim from contributor branch, plus maintainer additions:
- CHANGELOG entry for v0.50.64
- Version badge bump to v0.50.64
- New test: test_relative_time_today_bucket (closes minor coverage gap from code review)

Co-authored-by: aronprins <aronprins@users.noreply.github.com>
This commit is contained in:
Aron Prins
2026-04-16 18:58:53 +02:00
committed by GitHub
parent a512f2020e
commit a9a22ee751
6 changed files with 5 additions and 273 deletions

View File

@@ -206,17 +206,6 @@ def test_system_prompt_title_guard_exists():
"sessions.js must have: cleanTitle.startsWith('[SYSTEM:') guard expression"
def test_source_display_map_defined():
"""The _SOURCE_DISPLAY lookup map must be present and include core gateway platforms."""
content = _read_sessions_js()
assert '_SOURCE_DISPLAY' in content, \
"sessions.js must define _SOURCE_DISPLAY mapping for platform name lookup"
# Verify key platform entries are present
for platform in ("telegram:'Telegram'", "discord:'Discord'", "cli:'CLI'"):
assert platform in content, \
f"_SOURCE_DISPLAY must include entry for {platform}"
def test_cleanTitle_is_let_not_const():
"""cleanTitle must be declared with let (not const) to allow reassignment in the guard."""
content = _read_sessions_js()