Skip to content

bug: Workflow argument suggestions do not open after Tab completes the command #23

Description

@pmateusz

What

Typing /wor and pressing Tab correctly completes the command to /workflow , including the trailing space, but the list of /workflow arguments is not displayed. The user has to delete the inserted space and type it again before suggestions such as run, create, list, status, resume, cancel, and delete appear.

Description

  • Expected behavior: Accepting /workflow with Tab should move directly into argument completion and display the available subcommands because the cursor is already positioned after the command separator.
  • Actual behavior: Tab applies the command-name completion and closes the autocomplete popup. The text is ready for an argument, but no argument-completion request is made.
  • Root cause: This is in the shared PI TUI autocomplete transition, not in the workflow candidate provider. CombinedAutocompleteProvider.applyCompletion appends a space when it applies a slash-command name. The editor's Tab-selection path then calls cancelAutocomplete() and does not trigger a new completion request for the updated /workflow text. Deleting the space re-triggers command completion; typing the space while that popup is active updates it into argument completion, which explains the reported workaround.

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

    wontfixThis will not be worked on

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions