Skip to content

Theme Dialog preview theme is not reverted when quitting via double Ctrl+C and Ctrl+D #22541

@JayadityaGit

Description

@JayadityaGit

What happened?

When a user opens the Theme Dialog (/theme) and highlights a theme (which previews it), and then presses Ctrl+C twice to exit the CLI (which is the standard way to quit), the CLI quits but the preview theme remains applied. This affects the "Goodbye" message and the terminal state after exiting, rather than reverting to the original saved theme.

What did you expect to happen?

If the CLI is exited (via double Ctrl+C) while the Theme Dialog is open and no new theme has been explicitly selected with Enter, the CLI should revert to the original theme upon unmounting the dialog, ensuring the exit sequence and terminal state are visually consistent.

Client information

Client Information Linux platform

Login information

N/A

Anything else we need to know?

This issue only exists after exiting the cli effecting the goodbye dialog, restarting the cli has the same original theme, but still it applies the preview theme effecting the goodbye dialog without consent

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/coreIssues related to User Interface, OS Support, Core Functionalityhelp wantedWe will accept PRs from all issues marked as "help wanted". Thanks for your support!

    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