Skip to content

Constant focus on chat textbox prevents selecting and copying partial response #1493

@ericol

Description

@ericol

Problem

Clicking in any part of the jupyter-ai bar or chat document constantly moves the focus to the text input box, making selecting and copying parts of the responses impossible.

There are many times when the reply by an AI is not used completely, but only a portion of it is necessary. Example response:

# 8.x+ – Dialog lives in the `widget_dialog` submodule
from ipywidgets.widgets.widget_dialog import Dialog   # or

# Quick‑and‑dirty alias
from ipywidgets.widgets import widget_dialog
Dialog = widget_dialog.Dialog

Say I want to execute only from ipywidgets.widgets.widget_dialog import Dialog.
I can select that text in the reply, but in the very moment I release the mouse button, the text is unselected and focus is set to the "Start chatting" text box.
This makes the only viable solution (that I can think of) cumbersome, as I have copy the whole response, paste it in a cell and remove what I don't want.

Proposed Solution

Add an option so focus is user driven (As in, only focus the textbox when clicked, or the user navigate to it with tab or similar.

Additional context

Screen.Recording.2025-10-23.at.12.45.58.pm.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBugs reported by users

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions