Skip to content

The agent that grows with you

Merge pull request #140971 from NousResearch/fix/pkg10-desktop-a

Teknium0952996a3727
diff --cc gateway/session_controls.py
index d5d606e5ea9,0ef201893ec..42b7935cee7
--- a/gateway/session_controls.py
+++ b/gateway/session_controls.py
@@@ -616,10 -617,11 +623,12 @@@ class AuthorityConnection
from gateway.session_policy import policy_for_source, refresh_profile_hooks
await asyncio.to_thread(refresh_profile_hooks, policy_for_source(self.authority.runner, source))
info = await snapshot_info(self.authority, snapshot.handle.ref)
+ from gateway.session_connections import pending_connection
display = {}
if params.get('display_projection'):
- display['display_messages'] = display_projection(snapshot.history, self.authority.profile_id)
+ # A micro-compaction merge stays in ``messages`` (an undo target); its originals are what shows.
+ display['display_messages'] = display_projection(
+ [row for row in snapshot.history if not model_only(row)], self.authority.profile_id)
return {'session_id': ref.session_id, 'stored_session_id': ref.session_id,
'messages': list(snapshot.history), **display, 'message_count': len(snapshot.history),
'running': snapshot.handle.execution_state == 'running',