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)
When the same process runs an input command and then creates another Terminal.Gui application (for example a later
MarkdownRenderer.RenderToAnsicall, whose headless path just callsApplication.Create()), this assignment leaves the staticApplication.AppModelset toInlineafter dispatch. Because this is process-wide state, embedding tests/tools that reuseCliHostcan 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)