"Choose Image" requires multiple clicks and opens the file dialog twice

Open
#1,249 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
57/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
kotlin
Domain
desktop, frontend

Research direction

Start by tracing the IntelliJ plugin’s chat input “Image” action and the file chooser handler, then check how listeners are registered and whether they can be attached more than once. Reproduce on IntelliJ IDEA 2025.3 on macOS using the steps in the issue. Done means the picker opens on the first click and only once per click, with the selected image still attached.

Written by the indexing model from the issue text.

Description

bug
What happened?

Description:

The image attachment flow is unstable on the latest version (I installed the plugin yesterday, so this is NOT an outdated-version issue).

Reproduction:

  1. In the chat input, click "Image".
  2. Nothing happens for the first few clicks.
  3. Eventually the file picker opens; select an image.
  4. The image is attached successfully.
  5. A SECOND file dialog pops up immediately. Cancelling it does not remove the image, confirming the second dialog is unnecessary.

Expected:

  • The picker should open on the first click.
  • Only one file dialog should appear per "Image" click.

Analysis:
This strongly suggests the file chooser is triggered twice (duplicate event listener / handler), rather than a "first attempt fails" behavior.

Environment:

  • IDE: IntelliJ IDEA 2025.3
  • OS: macOS
  • Plugin version: latest (installed yesterday)
  • Other installed plugins: SonarQube for IDE, Grazie, AI Assistant (possible UI event conflicts)
Relevant log output or stack trace

Steps to reproduce

No response

CodeGPT version

3.0.8-241.1

Operating System

macOS

Dominant language
Kotlin
Stars
1.9k
Forks
401
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from carlrobertoh/ProxyAI

All issues in carlrobertoh/ProxyAI

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.