Co-authored-by: Maxime Dolores <maxime.dolores@ext.mistral.ai> Co-authored-by: Michel Thomazo <51709227+michelTho@users.noreply.github.com> Co-authored-by: Peter Evers <peter.evers@mistral.ai> Co-authored-by: Pierre Rossinès <pierre.rossines@mistral.ai> Co-authored-by: Quentin <quentin.torroba@mistral.ai> Co-authored-by: Val <102326092+vdeva@users.noreply.github.com> Co-authored-by: Vincent G <10739306+VinceOPS@users.noreply.github.com> Co-authored-by: Mistral Vibe <vibe@mistral.ai>
19 lines
594 B
Python
19 lines
594 B
Python
from __future__ import annotations
|
|
|
|
from vibe.core.session.session_id import shorten_session_id
|
|
|
|
|
|
def compact_complete_display(
|
|
old_session_id: str | None = None, new_session_id: str | None = None
|
|
) -> str:
|
|
|
|
message = "Compaction completed."
|
|
if old_session_id is not None and new_session_id is not None:
|
|
short_old = shorten_session_id(old_session_id)
|
|
short_new = shorten_session_id(new_session_id)
|
|
message = (
|
|
f"{message}\n"
|
|
f"session: {short_old} (before compaction) → {short_new} (after compaction)"
|
|
)
|
|
|
|
return message
|