π OpenHands: AI-Driven Development
fix: correct logger format args and -0 slice bug (#13817)
Ricardo-M-La0304b9e4cc9
diff --git a/openhands/app_server/event_callback/set_title_callback_processor.py b/openhands/app_server/event_callback/set_title_callback_processor.pyindex 7805042b92..53d0f16826 100644--- a/openhands/app_server/event_callback/set_title_callback_processor.py+++ b/openhands/app_server/event_callback/set_title_callback_processor.py@@ -68,6 +68,7 @@ async def _poll_for_title(# Transient agent-server failures are acceptable; retry later._logger.warning('Title poll failed for conversation %s: %s',+ url,exc,)else:diff --git a/openhands/memory/condenser/impl/recent_events_condenser.py b/openhands/memory/condenser/impl/recent_events_condenser.pyindex 0492532781..9feed0aea2 100644--- a/openhands/memory/condenser/impl/recent_events_condenser.py+++ b/openhands/memory/condenser/impl/recent_events_condenser.py@@ -18,7 +18,7 @@ class RecentEventsCondenser(Condenser):"""Keep only the most recent events (up to `max_events`)."""head = view[: self.keep_first]tail_length = max(0, self.max_events - len(head))- tail = view[-tail_length:]+ tail = view[-tail_length:] if tail_length > 0 else []return View(events=head + tail)@classmethod