Files
hermes-agent/apps/shared
unsupportedpastels 64f516c914 fix(cli): /diff session reads the session's checkpoint policy and renders in full
/diff session on a rewired classic CLI went through slash.exec to the
messaging /diff handler. That handler builds its CheckpointManager from the
profile config. A `hermes --checkpoints` launch enables checkpoints only in
the session's frozen policy, so with the default `checkpoints.enabled: false`
it answered "not enabled" even after the session's tools had saved
checkpoints. Its output was also chat text, cut to 60 lines / 3000 chars and
fenced, where the terminal renderer shows 400 lines.

The owner now serves rollback.session_diff next to rollback.list/diff/restore.
It resolves the manager from the session's frozen checkpoint policy, as
rollback already does, applies the same container-backend refusal, and
returns main's session_diff result as data. The body is bounded to stay
inside one frame, and diff_lines carries the full line count. The CLI hands
that result to main's terminal renderer: the session-diff tail of
_print_session_diff moves into print_session_diff, shared by the local and
gateway paths, and _print_diff_body takes the sender's uncut line count for
its "N more lines" note. The method is declared in CANONICAL_METHODS and the
generated TS/OpenRPC contracts are regenerated.

Refs NousResearch#134889
2026-10-14 20:47:20 -04:00
..