Skip to content

Message Actions do not allow navigation by key anymore #65850

Done

Description

@mishaxz

Description

prior to 2.4.0 "Message Actions" allowed the user to press c to jump to copy and then you could press Enter and so easily copy a message.

after 2.4.0, this is broken.. pressing c does nothing, making it much harder to quickly copy a message

and since copying a message is something that is routinely done, this is very annoying because now you have to press up or down arrow keys twice and then Enter

It also makes it error prone.. if you accidentally press the arrow key to few or too many times you might end up Forking the entire Chat. or Reverting a message... c was an accurate way to ensure you didn't Fork the chat or revert the message by accident.

Plugins

No response

OpenCode version

2.4.0

Steps to reproduce

  1. click a message
  2. press c
  3. nothing happens

to see how it should work, use the previous version of open code CLI before 2.4.0

Operating System

Windows 11 Pro

Terminal

Windows Terminal Powershell

Activity

  1. added
    area/tui
    type/bug
    version/v2
    on Nov 23, 2026
  2. opencodejr commented on Nov 23, 2026

    @opencodejr
    Contributor

    Seen with a simulated model or a mock server, not a real provider; a maintainer should confirm.

    Thanks for the report. I reproduced this on 2.4.0, and it still happens on the latest dev (91365c8).

    What I did: in the TUI, I sent a message, clicked it to open Message Actions, and pressed c. The recording and first screenshot below show the result: nothing changes, all four actions stay listed and "Jump to" stays selected.

    Likely cause: 2.4.0 turned on the new dialog designs by default, and this dialog turns off its type-to-filter list when the new designs are on.

    Workaround until it's fixed: turn the new designs off by adding this to your cli.json:

    { "experimental": { "new-designs": false } }

    With that set, pressing c narrows the list to Copy again, as the second screenshot shows. I ran this check with OpenCode's simulated model standing in for a real one, which doesn't change how the dialog behaves. The script below reproduces it.

    recording.mp4

    Screenshot

    Screenshot

    Screenshot

    Reproduction script (drive.ts)
    // Repro for anomalyco/opencode#65850: in the TUI "Message Actions" dialog, typing "c"
    // no longer filters the list to "Copy" (2.4.0, where the "new-designs" experiment became the default).
    // Set LEGACY=1 to run with experimental["new-designs"]: false for comparison (typing filters there).
    import { Effect, Stream } from "effect"
    import { Llm, OpenCodeDriver } from "opencode-drive"
    
    export default OpenCodeDriver.use(
      {
        ...(process.env.OC_DEV ? { opencode: { dev: process.env.OC_DEV } } : {}),
        ...(process.env.LEGACY ? { tuiConfig: { experimental: { "new-designs": false } } as any } : {}),
        tui: { recording: true, keypressOverlay: true, pointerOverlay: true },
        project: { git: true },
      },
      ({ ui, llm }) =>
        Effect.gen(function* () {
          yield* llm.serve(() => Stream.make(Llm.text("Assistant reply here.")))
          yield* ui.submit("Please copy this user message")
          yield* Effect.sleep(3000)
          // Click the user message to open "Message Actions"
          yield* ui.mouse({ action: "move", x: 12, y: 3 })
          yield* ui.mouse({ action: "down", x: 12, y: 3, button: "left" })
          yield* ui.mouse({ action: "up", x: 12, y: 3, button: "left" })
          yield* ui.waitFor("Message Actions")
          yield* Effect.sleep(800)
          yield* ui.screenshot("01-message-actions-open")
          // Type "c": before 2.4.0 this filtered the list down to "Copy", so Enter copied the message
          yield* ui.press("c")
          yield* Effect.sleep(1000)
          yield* ui.screenshot("02-after-pressing-c")
          yield* Effect.sleep(800)
        }),
    )

    Run it with opencode-drive: opencode-drive run ./drive.ts. It drives opencode from your PATH; set OC_DEV to the path of an OpenCode checkout to run that from source instead.

  3. added
    status/repro-simulated
    on Nov 23, 2026
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

    area/tuistatus/repro-simulatedtype/bugversion/v2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions