Skip to content

--handle-input not working with Expo? #516

Description

@FezVrasta
  • Description: I'm trying to run expo start along with another command, I'm using --handle-input but nothing happens when I press r (reload) or i (open on iOS)
  • Expected Behavior: I would expect the commands to be forwarded to the Expo CLI
  • Environment: macOS, Node lts/jod
  • Reproduction: concurrently -k -n 'mobile-client,backend' -c 'red,green' --handle-input 'yarn expo start' 'yarn workspace backend run dev'

Activity

  1. gustavohenke commented on Nov 15, 2024

    @gustavohenke
    Member

    Sounds like it's detecting whether it's in TTY mode. I don't know how this is used, but the function name is pretty suggestive:

    https://github.com/expo/expo/blob/988261c1a1405aca1f0a32f28bf068306aa03a8c/packages/%40expo/cli/src/utils/interactive.ts#L4-L5

    If you pass the --raw flag to concurrently, expo might respond - but at the cost of not having output prefixed.

    It'd be cool to have some env variable to force interactivity.

  2. FezVrasta commented on Nov 16, 2024

    @FezVrasta
    Author

    Thanks. Do you think the raw option could be enabled just for a specific command rather than for all of them? So that I can have the output prefixed for all the other commands I run?

  3. gustavohenke commented on Nov 16, 2024

    @gustavohenke
    Member

    Yep, this should already be possible today though through API mode.

    concurrently([
    	{ name: '...', command: 'foo', raw: true },
    	{ name: '...', command: 'bar' } // raw: false by default
    ])

    Docs (it's lacking raw in there, but it works)

    That said, I wouldn't say no to making the CLI --raw flag accept indices/names as a way to pick which commands use it.

  4. FezVrasta commented on Nov 18, 2024

    @FezVrasta
    Author

    so would it be --raw 0 and/or --raw label-a right? Could it support multiple raws at the same time? (--raw 0 --raw 1)?

  5. gustavohenke commented on Nov 19, 2024

    @gustavohenke
    Member

    Yes, but I'd favour using comma separators like in most other flags that accept multiple inputs (e.g. --prefix-colors, --names or --success), so --raw foo,bar,1,2,3

  6. ByScripts commented on Mar 25, 2026

    @ByScripts

    Any news on that issue?

    I'm using concurrently to run multiple Vue apps at once (concurrently "pnpm:dev:*") and I am unable to send command to any of them.

  7. gustavohenke commented on May 19, 2026

    @gustavohenke
    Member

    Hey @ByScripts, did you try with --raw?
    If it works, it'll confirm that your dev:* scripts are detecting it's not a TTY, and therefore ignore input forwarding.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions