x-cmd icon indicating copy to clipboard operation
x-cmd copied to clipboard

["BUG"] After upgrading to x7 today, the cursor of the ai dialog box is no longer displayed. It used to be a flashing red cursor. | [mod=chat] [v0.4.4]

Open QianChenglong opened this issue 1 year ago • 14 comments

Describe the bug

cursor is not show in ai chat.

System (please complete the following information):

[email protected]

OS: macOS 14.5 23F79 arm64 Host: MacBookPro18,1 Kernel: 23.5.0 Uptime: 39 days, 5 hours, 42 mins Shell: fish 3.7.1 Resolution: 1728x1117@2x, 2560x1440@2x DE: Aqua Terminal: zellij GPU: Apple M1 Pro Memory: 6469MiB / 32768MiB

Screenshots old: image

new: image

To Reproduce Steps to reproduce the behavior:

  1. Start up service: '...'
  2. Type command: '...'

Expected behavior A clear and concise description of what you expected to happen.

Additional context Add any other context about the problem here.

QianChenglong avatar Jul 24 '24 12:07 QianChenglong

OK. I will take a look on it.

I haven't been able to reproduce the cursor problem you described. I'll ask my colleagues to see if they can replicate it.

edwinjhlee avatar Jul 24 '24 13:07 edwinjhlee

same problem using in alacritty . image

QianChenglong avatar Jul 25 '24 01:07 QianChenglong

how can i rollback to last version?

QianChenglong avatar Jul 25 '24 02:07 QianChenglong

I think x upgrade latest gets you back, or just run the standard eval "$(curl https://get.x-cmd.com)" installer...

iandol avatar Jul 25 '24 02:07 iandol

I think x upgrade latest gets you back, or just run the standard eval "$(curl https://get.x-cmd.com)" installer...

last version is not latest version

QianChenglong avatar Jul 25 '24 06:07 QianChenglong

The issue can be reproduced using other terminals ? Could you also provide the version number of gum by running x gum -v ?

I am using zellij, iterm2, and apple terminal, all of which are working fine.

CleanShot 2024-07-25 at 18 02 51@2x

Zhengqbbb avatar Jul 25 '24 10:07 Zhengqbbb

image

QianChenglong avatar Jul 25 '24 11:07 QianChenglong

image

If this issue occurs under this command, it is considered a defect in the upstream package, and we will find a way to replace it. So please check if this problem arises when running the command.

x gum input --prompt=">>> " --width 0 --placeholder="Enter to end the input, Ctrl-C to exit, /h for help"

Zhengqbbb avatar Jul 25 '24 12:07 Zhengqbbb

yes, still no cursor. image

QianChenglong avatar Jul 26 '24 03:07 QianChenglong

This might be a bug in gum v0.14.1, previously x-cmd used gum v0.13.0

qiakai avatar Jul 26 '24 03:07 qiakai

How to temporarily specify the version to avoid this problem, which greatly affects the use

QianChenglong avatar Jul 26 '24 03:07 QianChenglong

I decide to give up gum input.

Instead we try to use fzf as a one-liner editor. ( Also with history supports ) It switchs to gum write if necessary.

This solution requires further refinement. We welcome your feedback and suggestions. We will implement necessary adjustments in this week.

edwinjhlee avatar Jul 29 '24 16:07 edwinjhlee

I'd love to try this approach

QianChenglong avatar Jul 30 '24 08:07 QianChenglong

Just like https://github.com/x-cmd/x-cmd/issues/35

The issue with gum input has been addressed by switching to fzf.

We've implemented fzf as a replacement, providing a more robust solution. Please take a look ~

edwinjhlee avatar Aug 12 '24 05:08 edwinjhlee

This issue should be resolved in v0.4.4.
Please reopen this issue if the problem persists.

edwinjhlee avatar Nov 14 '24 05:11 edwinjhlee