Skip to content

Interactive -i startup prompt is ignored with custom/BYOK provider in TTY sessions #4258

Description

@shukebeta

Summary

When Copilot CLI is started in interactive TTY mode with a custom/BYOK provider, the startup prompt passed via -i/--interactive is not auto-submitted.

The same -i flow works with the standard provider in the same tmux session.

Version / environment

  • Copilot CLI: 1.0.75
  • OS: Linux
  • Reproduced in: tmux pane / interactive TTY
  • Provider type: custom anthropic-compatible provider via COPILOT_PROVIDER_*

Reproduction

Control case: standard provider works

Run this inside a tmux pane / interactive TTY:

copilot --yolo -i "hi"

Observed:

  • TUI opens
  • hi is auto-submitted as the first user message
  • The session responds normally

Failing case: custom/BYOK provider drops the startup prompt

Run this in the same kind of tmux pane / interactive TTY:

COPILOT_PROVIDER_BASE_URL=https://example.invalid \
COPILOT_PROVIDER_TYPE=anthropic \
COPILOT_PROVIDER_API_KEY=redacted \
COPILOT_MODEL=Minimax-m3 \
copilot --yolo -i "hi"

Observed:

  • TUI opens successfully
  • No hi bubble appears
  • The session is idle at the normal / commands · ? help ... prompt
  • Nothing is sent to the model

Expected:

  • hi should be auto-submitted exactly like the standard provider case

Important contrast

If I manually type hi and press Enter after the TUI opens in the BYOK/custom-provider case, the request is sent successfully.

So this does not appear to be a basic auth/network/startup failure. It looks specifically like the startup prompt from -i is being dropped on the custom/BYOK provider path.

Additional notes

  • I reproduced the same behavior whether the model is provided via COPILOT_MODEL=... or --model ...
  • In the failing case, the log shows startup reaching cli_ready, but there is no corresponding user_message, assistant.turn_start, or model.call_start
  • In the working standard-provider case, the log does show the initial hi being submitted

This feels like an interactive startup regression specific to the custom/BYOK provider path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions