Skip to content

Phantom log entries (log entries duplicated and reduplicated) #71

@CatamountJack

Description

@CatamountJack

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 #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 toolong@1.4.0 tl <filename>

Happy to provide any additional information that may be helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions