amazon-q-developer-cli icon indicating copy to clipboard operation
amazon-q-developer-cli copied to clipboard

ghostty autocompletion popover in wrong position

Open meritozh opened this issue 1 year ago • 22 comments

Checks

Operating system

macOS 15.3.0 (24D60)

Expected behaviour

Image

Actual behaviour

Image

Steps to reproduce

No response

Environment

[q-details]
version = "1.6.1"
hash = "f66e0b0e917ab185eef528dc36eca56b78ca8b5d"
date = "2025-02-04T00:06:28.754523Z (14d ago)"
variant = "full"

[system-info]
os = "macOS 15.3.0 (24D60)"
chip = "Apple M1 Pro"
total-cores = 10
memory = "32.00 GB"

[environment]
cwd = "/Users/USER"
cli-path = "/Users/USER"
os = "Mac"
shell-path = "/bin/zsh"
shell-version = "5.9"
terminal = "Ghostty"
install-method = "unknown"

[env-vars]
PATH = "/Users/USER/.bytebm/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/USER/.rbenv/shims:/opt/homebrew/Cellar/pyenv-virtualenv/1.2.4/shims:/Users/USER/.pyenv/shims:/Users/USER/.bytebm/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/share/dotnet:~/.dotnet/tools:/opt/puppetlabs/bin:/Users/USER/.cargo/bin:/Applications/Ghostty.app/Contents/MacOS:/Users/USER/.local/bin:/Users/USER/Library/Application Support/JetBrains/Toolbox/scripts"
QTERM_SESSION_ID = "03ef8e8655bc4985b7a473713bc4fefe"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.6.1"
SHELL = "/bin/zsh"
TERM = "xterm-ghostty"
__CFBundleIdentifier = "com.mitchellh.ghostty"

meritozh avatar Feb 18 '25 08:02 meritozh

happens to me too

banuni avatar Feb 19 '25 07:02 banuni

also happens to me occasionally.

0mykull avatar Feb 20 '25 18:02 0mykull

Same, and not only ghosty

LeOndaz avatar Feb 28 '25 05:02 LeOndaz

Do you have any steps to reproduce? It's hard to discern what could be happening here

brandonskiser avatar Mar 08 '25 00:03 brandonskiser

Do you have any steps to reproduce? It's hard to discern what could be happening here

i just download ghostty, then run q integrations install input-method. nothing is special

meritozh avatar Mar 11 '25 09:03 meritozh

Happens occasionally for me too.

msakowski avatar Mar 11 '25 11:03 msakowski

i have been running into this very frequently. on mac os 15.3.1. i use powerlevel10k prompt if that matters

❯ ghostty --version
Ghostty 1.1.2

Version
  - version: 1.1.2
  - channel: stable
Build Config
  - Zig version: 0.13.0
  - build mode : builtin.OptimizeMode.ReleaseFast
  - app runtime: apprt.Runtime.none
  - font engine: font.main.Backend.coretext
  - renderer   : renderer.Metal
  - libxev     : main.Backend.kqueue
❯ q diagnostic

[q-details]
version = "1.7.0"
hash = "8885a6708f2f07d02d29460a96f9c422da095e49"
date = "2025-03-06T01:03:54.119908Z (7d ago)"
variant = "full"

[system-info]
os = "macOS 15.3.1 (24D70)"
chip = "Apple M4 Max"
total-cores = 16
memory = "128.00 GB"

[environment]
cwd = "/Users/USER"
cli-path = "/Users/USER"
os = "Mac"
shell-path = "/bin/zsh"
shell-version = "5.9"
terminal = "Ghostty"
install-method = "unknown"

[env-vars]
PATH = "/Users/USER/.bun/bin:/Users/USER/.atuin/bin:/Users/USER/.local/share/mise/installs/node/22.13.1/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/USER/.bun/bin:/Users/USER/bin:/Users/USER/.local/bin:/usr/local/bin:/Users/USER/Library/pnpm:/Users/USER/.sst/bin:/Users/USER/.cargo/bin:/Users/USER/Developer/depot_tools:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/go/bin:/Applications/Ghostty.app/Contents/MacOS"
QTERM_SESSION_ID = "21433e20a5b54a9eb042bdafd278cc01"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.7.0"
SHELL = "/bin/zsh"
TERM = "xterm-ghostty"
__CFBundleIdentifier = "com.mitchellh.ghostty"

aryasaatvik avatar Mar 13 '25 06:03 aryasaatvik

i think this started happening after v1.6.1 or v1.6.2. I would to be able to downgrade to debug more

aryasaatvik avatar Mar 13 '25 06:03 aryasaatvik

Happens occasionally for me too.

yarinba avatar Apr 13 '25 09:04 yarinba

I'm also using ghostty as my terminal, but I'm not having this issue now. If anyone is still facing this issue, please let me know how to reproduce it.

konippi avatar May 01 '25 13:05 konippi

This happens for me as well, installed using the standard q integrations install input-method.

Restarting ghostty seems to resolve it temporarily (sometimes) but it just appears again. Not able to draw a correlation as to what exactly triggers the behavior.

I do use Q autocomplete on Ghostty as well as VSCode and the "random" position of the auto-complete box seems to be the exact position of the VSCode terminal in another window.

Image

Image

Although, even after closing the VSCode shell and restarting Ghostty and q restart, it still appears at the old VSCode terminal position.

Image

Current Ghostty version

Ghostty 1.1.3

Version
  - version: 1.1.3
  - channel: stable
Build Config
  - Zig version: 0.13.0
  - build mode : builtin.OptimizeMode.ReleaseFast
  - app runtime: apprt.Runtime.none
  - font engine: font.main.Backend.coretext
  - renderer   : renderer.Metal
  - libxev     : main.Backend.kqueue

Running q diagnostic

[q-details]
version = "1.12.1"
hash = "a1adeaf5df9e144dcfa0bac728de942891254df0"
date = "2025-06-18T00:46:00.699098Z (4d ago)"
variant = "full"

[system-info]
os = "macOS 15.2.0 (24C101)"
chip = "Apple M3"
total-cores = 8
memory = "16.00 GB"

[environment]
cwd = "/Users/USER"
cli-path = "/Users/USER"
os = "Mac"
shell-path = "/bin/zsh"
shell-version = "5.9"
terminal = "Ghostty"
install-method = "unknown"

[env-vars]
PATH = "/Users/USER/.nvm/versions/node/v24.1.0/bin:/opt/homebrew/opt/mysql-client/bin:/opt/homebrew/opt/mysql-client/bin:/opt/homebrew/opt/libpq/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Applications/Ghostty.app/Contents/MacOS:/Users/USER/.local/bin:/Users/USER/.lmstudio/bin"
QTERM_SESSION_ID = "1f4506e1531e45beabad00e7c5a921b4"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.12.1"
SHELL = "/bin/zsh"
TERM = "xterm-ghostty"
__CFBundleIdentifier = "com.mitchellh.ghostty"

Pranay-Narang avatar Jun 22 '25 07:06 Pranay-Narang

I can also experience this when using ghostty and vscode terminal. It's easier to reproduce when launching ghostty in quake mode (but happens also in windowed mode).

Image

UPDATE: also seems to happen when connecting external screen that is set as main screen and the terminal shifts to it.

fmal avatar Jul 08 '25 08:07 fmal

i've reached uncharted territory first monitor with ghostty terminal

Image

second monitor with amazon-q autocompletion

Image

Wassap124 avatar Jul 17 '25 11:07 Wassap124

This is happening in almost any terminal, I am using WezTerm and VSCode, happens for both.

karanbalani avatar Jul 19 '25 20:07 karanbalani

If I connect an extended screen, there's basically misalignment every time. Hasn't anyone noticed this issue? It really affects the experience.

aimerthyr avatar Aug 01 '25 15:08 aimerthyr

anyone facing this issue can reading https://github.com/aws/amazon-q-developer-cli/issues/1930 to verify it works or not

meritozh avatar Aug 11 '25 07:08 meritozh

anyone facing this issue can reading #1930 to verify it works or not

It still doesn't work, and now there are more and more cases of offset.

aimerthyr avatar Aug 14 '25 04:08 aimerthyr

This bug is very much annoying. Can the team please look into it? I'm happy to provide logs for troubleshooting if required.

msakowski avatar Aug 20 '25 17:08 msakowski

same question in vscode. Is there any developer, fix please.

codeime avatar Aug 22 '25 07:08 codeime

Hello here, I have the same problem as you after each Amazon Q update. I just realized that if you launch a new terminal (alacritty on macos in my case), the positioning of the completion menu becomes back correct for ALL the terminals already opened. I imagine that it is enough to relaunch the pre/post blocks in .bashrc ? Until a better solution, I just launch/close a new terminal after an Amazon Q update.

ramet avatar Sep 21 '25 08:09 ramet