toolong icon indicating copy to clipboard operation
toolong copied to clipboard

Phantom log entries (log entries duplicated and reduplicated)

Open CatamountJack opened this issue 11 months ago • 0 comments

Since version 1.3.0, the program loads duplicate copies of log entries on startup and then continues to add additional duplicate copies during use.

Using an example short JSONL file I found on the internet (from here: https://github.com/yangjianxin1/Firefly/blob/master/data/dummy_dpo.jsonl), here is an example of how the the logs load in v1.4.0:

Image Note: This particular file can't be loaded in v1.5.0 (presumably due to https://github.com/Textualize/toolong/issues/55)

The entire log file is only 16 lines long, but after line 16 in TooLong, you can see log messages from line 2 begin repeating on line 18, and then again on line 26.

When scrolling the file, sometimes additional duplicates will be added, as shown in this GIF:

Image

This issue did not appear in version 1.2.1, but appears in 1.3.0, 1.4.0, and 1.5.0. Replicated with JSONL and non-JSONL log files.

Environment: Windows 11, x64 with Python 3.13.2 and Python 3.10.14 Run via uvk: uvx --from [email protected] tl <filename>

Happy to provide any additional information that may be helpful.

CatamountJack avatar Feb 27 '25 03:02 CatamountJack