Skip to content

[Bug]: AI chat message text cannot be selected or copied manually #739

Description

@kohai-ut

Search existing issues

  • I have searched the existing issues

Describe the bug

Text in AI chat messages cannot be selected with the mouse in the packaged OpenScreen desktop app. As a result, users cannot manually copy all or part of an AI response with Ctrl+C or the Edit → Copy command.

This is particularly disruptive when the AI supplies commands or code and the message's Copy message button also fails.

Expected behavior

Users should be able to select any portion of a user or assistant message and copy the selection using the standard platform clipboard controls.

To Reproduce

  1. Open OpenScreen Studio.
  2. Open the AI chat panel and select a conversation containing a response.
  3. Drag across text in the response to select it.
  4. Observe that no text selection is created, so Ctrl+C and Edit → Copy cannot copy the message text.

Screenshots

Not attached; the failure is the absence of a text-selection highlight while dragging across a message.

OS

Windows

OS Version

Windows 11

Browser

Other

Other Browser

Packaged Electron desktop application

Additional context

  • OpenScreen version: 1.13.0-rc.2 (1.13.0.0 product version).
  • I searched open and closed issues for select text, text selection, user-select, and related AI-chat terms and found no matching report.
  • The global stylesheet sets user-select: none on body:

    openscreen/src/index.css

    Lines 67 to 71 in f418465

    body {
    @apply bg-background text-foreground;
    -webkit-user-select: none;
    user-select: none;
    overflow: hidden;
  • The editor shell also sets user-select: none:
    font-family: var(--font-body);
    font-size: var(--fs-app);
    line-height: 1.5;
    overflow: hidden;
    user-select: none;
    }
  • .msgBubble does not override the inherited rule with user-select: text:
    .msgBubble {
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--r-md);
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: var(--fs-app);
    color: var(--fg-2);
    line-height: 1.5;
    }
  • The same CSS behavior is present in v1.12.2, v1.13.0-rc.1 through v1.13.0-rc.4, and current main.

The likely fix is to enable user-select: text for chat-message content (and expanded thinking content, if intended to be copyable) while retaining user-select: none on non-text editor controls.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions