Skip to content

**<sub><sub>![P2 Badge](https://img.shields.io/badge/P2-yellow?style=flat)</sub></sub> Initialize inline apps before invoking commands** #18

Description

@tig

P2 Badge Initialize inline apps before invoking commands

For input commands run without --fullscreen, this branch now skips app.Init() and then calls RunAsync with an uninitialized IApplication. The public ICliCommand.RunAsync contract says commands run after the host initializes Terminal.Gui, and this regresses any custom input command that reads app.Driver/app.Screen or builds views directly before going through InputCommandRunner; those commands only fail in the new inline default path. Set AppModel before initialization, but still initialize before dispatching the command.

Useful? React with 👍 / 👎.

Originally posted by @chatgpt-codex-connector[bot] in #17 (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