Skip to content

(triggers): typing into a session is blind to CLI dialogs, and a blocked session tells its driver nothing #379

Description

@jbr-sekoia

Driving sessions from outside, through the trigger watcher or sendInput, exposed two gaps:

  • After a task, the CLI opened a dialog ("Teach auto mode about your environment?"). The next two prompts sent to the session landed in that dialog, not in the composer, and were lost; the session sat idle for about an hour. The composer-state check the trigger watcher uses did not treat the dialog as "not a composer".
  • A session blocked on a permission prompt ("Do you want to proceed?") sat for an hour, twice. The sidebar showed "waiting" correctly, but nothing reaches whoever is driving the session: a trigger's result only reports submission.

Expected:

  • a trigger (and any typed input) is held back when the CLI shows a dialog rather than its composer, and the result says so;
  • the waiting state can be observed by a driver, e.g. a trigger chain step that waits for idle reports "waiting for a permission prompt" instead of timing out.

Related: #360 (a chain step waiting for idle that never comes).

Activity

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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions