@cello-protocol/cli 0.0.318 → 0.0.319

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -998,7 +998,9 @@ class CelloAdapter(BasePlatformAdapter):
998
998
  line = "[CELLO notice] " + text
999
999
  sid = _safe_scalar(notice.get("session_id"))
1000
1000
  logger.info("[cello] Notice for session %s: %s", sid, text)
1001
- if sid == current_session or (sid is None and self._session_scope == "agent" and current_session is not None):
1001
+ # Only a read of a session has a turn to put these in. A read of none has no turn, so nothing counts as "here":
1002
+ # with both ids empty they once matched, went into a list nobody used, and were never shown.
1003
+ if current_session is not None and (sid == current_session or (sid is None and self._session_scope == "agent")):
1002
1004
  here.append(line)
1003
1005
  continue
1004
1006
  if sid is None:
@@ -1017,7 +1019,9 @@ class CelloAdapter(BasePlatformAdapter):
1017
1019
  line = OPERATOR_HEADING + "\n" + reply["text"]
1018
1020
  sid = _safe_scalar(reply.get("session_id"))
1019
1021
  logger.info("[cello] The operator answered through %s, about session %s", reply.get("via"), sid)
1020
- if sid == current_session or (sid is None and self._session_scope == "agent" and current_session is not None):
1022
+ # Only a read of a session has a turn to put these in. A read of none has no turn, so nothing counts as "here":
1023
+ # with both ids empty they once matched, went into a list nobody used, and were never shown.
1024
+ if current_session is not None and (sid == current_session or (sid is None and self._session_scope == "agent")):
1021
1025
  here.append(line)
1022
1026
  continue
1023
1027
  if sid is None:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cello-protocol/cli",
3
- "version": "0.0.318",
3
+ "version": "0.0.319",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=24.7"