Skip to content

ui.press: chord strings like "ctrl+u" are typed literally #70

Description

@kitlangton

Drive 2.0.0 (464f9a3), OpenCode V2 e73fa5f476.

ui.press("ctrl+u") sends the text ctrl+u to the composer instead of failing or sending the chord. The probe then typed /alpha after it, so the composer read ctrl+u/alpha and the slash menu never opened; the only symptom was a UiWaitTimeoutError several steps later.

yield* ui.press("ctrl+u")            // typed literally
yield* ui.press("u", { ctrl: true }) // intended form

Expected: either parse the common mod+key spelling or reject a multi-character key that is not a known named key (escape, enter, ...) with an OperationError at the call site.
Actual: silently typed as text.

Log: .drive-output/plugin-registry/candidate-11.log (frame shows ctrl+u/alpha in the composer).

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions