Skip to content

**<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Restore AppModel after dispatch** #26

Description

@tig

P2 Badge Restore AppModel after dispatch

When the same process runs an input command and then creates another Terminal.Gui application (for example a later MarkdownRenderer.RenderToAnsi call, whose headless path just calls Application.Create()), this assignment leaves the static Application.AppModel set to Inline after dispatch. Because this is process-wide state, embedding tests/tools that reuse CliHost can make subsequent full-screen or headless viewers inherit the wrong app model; save the previous value and restore it once the command completes.

Useful? React with 👍 / 👎.

Originally posted by @chatgpt-codex-connector[bot] in #25 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions