Bug 506752

Summary: Kate (Version 25.04.3) blank untitled files after closing the application
Product: [Applications] kate Reporter: khoirul anwar <khoirulanwar97t>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: waqar.17a
Priority: NOR    
Version First Reported In: 25.04.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description khoirul anwar 2025-07-08 09:51:53 UTC
SUMMARY
Kate (Version 25.04.3) does not restore untitled files after closing the application, even though auto-save and session restoration options are enabled. This results in data loss if the user closes the app without manually saving the file.

STEPS TO REPRODUCE

    Open Kate (v25.04.3)

    Create a new file (untitled) and type some text

    Close Kate without saving the file

    Ensure the following settings are enabled:

        Load last used session on startup

        Automatically save and restore:

            ✓ Newly-created unsaved files

            ✓ Files with unsaved changes

    Reopen Kate

OBSERVED RESULT
The previously created untitled file is gone, and the text is not restored.

EXPECTED RESULT
The unsaved untitled file should be restored when Kate is reopened, according to the enabled auto-save and session restore configuration.

SOFTWARE/OS VERSIONS

    Linux/KDE Plasma: CachyOS

    KDE Plasma Version: 6.4.2

    KDE Frameworks Version: (please fill in if available)

    Qt Version: (please fill in if available)

ADDITIONAL INFORMATION
This issue does not occur when using Kate Nightly (64-bit AppImage) Version 25.11.70, where the untitled file is successfully preserved and restored after closing and reopening the application.
Comment 1 Waqar Ahmed 2025-07-15 11:01:52 UTC
This was due to broken stashing, should be fixed in upcoming release. If not, feel free to reopen a bug.
Comment 2 Waqar Ahmed 2025-07-15 11:02:08 UTC
closing