Skip to content

Log rotation on Windows incorrectly deletes the most recent log file. #21607

@MankinChung

Description

@MankinChung

Description

Each application restart triggers a deletion of the latest log file followed by a new creation, whereas expired log files are never purged.

Plugins

oh-my-openaget

OpenCode version

1.4.0

Steps to reproduce

Executing opencode models until the log file reaches the rotation threshold.

Screenshot and/or share link

Image Image

Operating System

Windows 11

Terminal

Windows Terminal

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)windows

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions