Bug 512713 - Terminal tabs not remembered on session restore
Summary: Terminal tabs not remembered on session restore
Status: REPORTED
Alias: None
Product: konsole
Classification: Applications
Component: general (other bugs)
Version First Reported In: 25.08.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-28 09:20 UTC by Petr Tesařík
Modified: 2025-11-28 19:42 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 Petr Tesařík 2025-11-28 09:20:35 UTC
SUMMARY

Tabs are not remembered .

STEPS TO REPRODUCE
1. Open Konsole
2. Create a Root Shell and a few other tabs
3. Change the current working directory in each tab
4. Logout (or reboot)
5. Login again

OBSERVED RESULT

Konsole is restored on login, but the tabs are lost (only the default tab is opened).

EXPECTED RESULT

On session restore, Konsole restores the tabs in the previous current directory in each tab. The Root Shell tab starts a root shell (asks for the root password).

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed-Slowroll 20251106
KDE Plasma Version: 6.5.2
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
Graphics Platform: Wayland

ADDITIONAL INFORMATION

Interestingly, this only happens with Wayland. When using X11, the Konsole window is restored correctly, including all tabs that were open at logout.
Comment 1 Jaka Kranjc 2025-11-28 11:42:39 UTC
I think this is a duplicate of: https://bugs.kde.org/show_bug.cgi?id=461780
Comment 2 Petr Tesařík 2025-11-28 17:53:58 UTC
(In reply to Jaka Kranjc from comment #1)
> I think this is a duplicate of: https://bugs.kde.org/show_bug.cgi?id=461780

Sounds like it does, indeed. Oh, so Konsole itself never did anything to save the tabs? Now, that's interesting, because IIRC the first time I logged in a Wayland session after exiting an X11 session, the tabs were in fact restored.
Comment 3 Petr Tesařík 2025-11-28 19:42:09 UTC
Just tested with this version:

Operating System: openSUSE Tumbleweed 20251127
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.1

Now:
1. start an x11 session
2. open Konsole
3. open a new Root shell tab, change directory
4. logout
5. start a wayland session
6. konsole is restored with two tabs, one of them with a Root shell
7. logout again (KDE asks about closing the konsole window with active tabs)
8. start a wayland session again
9. konsole is restored, but only with the default tab

At this point, I would be entirely happy if Konsole could save its state on a wayland logout the same way it does it on an x11 logout, because the restore part already works as expected.