Skip to content

[BUG] [v0.0.7] TUI ignores initial prompt: with_initial_prompt only logged, never applied #53308

@elliojang0401

Description

@elliojang0401

Project

cortex

Description

The CLI can pass a trailing prompt into the TUI via cortex_tui::run(config, initial_prompt), and AppRunner::with_initial_prompt documents that the text should be sent after startup. In direct-provider mode the runner only emits a debug log and explicitly notes that sending is unimplemented, so the user’s initial prompt never appears in the input and is never submitted.

Error Message

Debug Logs

System Information

Windows 10 Enterprise

Screenshots

https://github.com/elliojang0401/cortex/blob/main/2.mp4

Steps to Reproduce

  1. Run cortex with trailing words, e.g. cortex explain this file (no subcommand).
  2. Observe the TUI: the prompt is not pre-filled or auto-sent.

Expected Behavior

The initial prompt is applied (e.g. placed in the composer and/or submitted once the session is ready), matching with_initial_prompt / CLI behavior.

Actual Behavior

Initial prompt queued is logged at debug level; nothing is sent or shown.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions