Skip to content

πŸ™Œ OpenHands: AI-Driven Development

fix: RollingLogger move_back method ignoring amount parameter (#10874) (#10875)

caocao-sys408f8aa50f52
diff --git a/openhands/core/logger.py b/openhands/core/logger.py
index 585bb59020..dedc485785 100644
--- a/openhands/core/logger.py
+++ b/openhands/core/logger.py
@@ -217,7 +217,7 @@ class RollingLogger:
r"""'\033[F' moves the cursor up one line."""
if amount == -1:
amount = self.max_lines
- self._write('\033[F' * (self.max_lines))
+ self._write('\033[F' * amount)
self._flush()
def replace_current_line(self, line: str = '') -> None: