Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion emrg/client/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def _format_status_left(title: str, sid: str, model: str = "") -> str:
ver = getattr(emrg, "__version__", "dev")
parts = [f"v{ver}"]
if title:
parts.append(f"{title} ({sid[:8]})")
parts.append(f"{title} ({sid})")
else:
parts.append(sid)
if model:
Expand Down
11 changes: 8 additions & 3 deletions tests/test_app_status_left.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,14 @@ def test_no_model_omits_brackets(self):
out = _format_status_left("main", "s_260727", "")
assert "[" not in out

def test_sid_truncated_to_8_chars(self):
"""Long session ids are truncated to 8 chars in the title form."""
def test_sid_full_in_title_form(self):
"""Full session id is shown in the title form (rant 2026-08-13T16:14:12).

Host request: when a session name exists, the status bar must show the
complete session id (previously truncated to 8 chars, inconsistent with
the no-title form which always showed the full id).
"""
from emrg.client.app import _format_status_left

out = _format_status_left("main", "s_260727abcdef", "")
assert "main (s_260727)" in out
assert "main (s_260727abcdef)" in out
Loading