Bug 506752 - Kate (Version 25.04.3) blank untitled files after closing the application
Summary: Kate (Version 25.04.3) blank untitled files after closing the application
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: application (other bugs)
Version First Reported In: 25.04.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-08 09:51 UTC by khoirul anwar
Modified: 2025-07-15 11:02 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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