fish-ai icon indicating copy to clipboard operation
fish-ai copied to clipboard

fix: warning messages when running inside ghostty terminal

Open semidark opened this issue 6 months ago • 2 comments

📝 Environment

> fish_ai_bug_report
Environment

Running on Ubuntu 24.04.2 LTS
Machine hardware: x86_64

Key bindings

bind ctrl-p _fish_ai_codify_or_explain
bind -k nul _fish_ai_autocomplete_or_fix

Key bindings in use: fish_default_key_bindings

Dependencies

Python version used by fish-ai: Python 3.12.9
Python version used by the system: Python 3.12.9
fish, version 4.0.2
fisher, version 4.4.5
git version 2.43.0

Package            Version
------------------ ---------------
annotated-types    0.7.0
anthropic          0.51.0
anyio              4.9.0
binaryornot        0.4.4
cachetools         5.5.2
certifi            2025.4.26
cffi               1.17.1
chardet            5.2.0
charset-normalizer 3.4.2
cohere             5.15.0
cryptography       44.0.3
distro             1.9.0
eval_type_backport 0.2.2
fastavro           1.10.0
filelock           3.18.0
fish_ai            1.8.0
fsspec             2025.3.2
google-auth        2.40.1
google-genai       1.15.0
groq               0.24.0
h11                0.16.0
httpcore           1.0.9
httpx              0.28.1
httpx-sse          0.4.0
hugchat            0.4.19
huggingface-hub    0.31.2
idna               3.10
iterfzf            1.8.0.62.0
jaraco.classes     3.4.0
jaraco.context     6.0.1
jaraco.functools   4.1.0
jeepney            0.9.0
jiter              0.9.0
keyring            25.6.0
mistralai          1.7.0
more-itertools     10.7.0
openai             1.78.1
packaging          25.0
pip                24.3.1
pyasn1             0.6.1
pyasn1_modules     0.4.2
pycparser          2.22
pydantic           2.11.4
pydantic_core      2.33.2
python-dateutil    2.9.0.post0
PyYAML             6.0.2
requests           2.32.3
requests-toolbelt  1.0.0
rsa                4.9.1
SecretStorage      3.3.3
simple-term-menu   1.6.6
six                1.17.0
sniffio            1.3.1
tokenizers         0.21.1
tqdm               4.67.1
types-requests     2.32.0.20250515
typing_extensions  4.13.2
typing-inspection  0.4.0
urllib3            2.4.0
websockets         15.0.1

Fish plugins

jorgebucaran/fisher
realiserad/fish-ai

Configuration

[fish-ai]
configuration = local-llama

[local-llama]
provider = self-hosted
model = qwen2.5-coder:3b
server = http://localhost:11434/v1

Functionality tests

🔥 Running functionality tests...
codify 'print the current date' -> 'date' (in 2 seconds)
explain 'date' -> 'Display the current date and time.' (in 5 seconds)

Compatibility check

👍 Python 3.12 is supported.

Logs from the last session

😴 No log file available.

🙉 To reproduce

Follow these steps to reproduce the bug.

  1. Open the terminal ghostty Version 4.0.2 .

  2. Type the following:

    # write Hello World on the screen
    
  3. Press ctrl+p.

    • "Under the AI Prompt (shell comment) the message tput: unknown terminal "xterm-ghostty" apears
    • The expected comand is generated and can be then executed Image

🕊 Expected behavior

No Warning or error message cluttering up the Terminal when using fish-ai command generation feature

semidark avatar May 17 '25 16:05 semidark

This is might be some type of bug in fish shell. Try to make the fish to use xterm-256color

# Add to your config.fish
set -gx TERM xterm-256color

Termux-Masters avatar May 18 '25 16:05 Termux-Masters

How did you install Ghosttty? I fired up Ubuntu 24 LTS in a VM and install Ghostty using snap install ghostty --classic and I got version 1.1.3. Everything seems to work fine.

Are you connecting to the system and running these commands over SSH?

Realiserad avatar May 19 '25 15:05 Realiserad

This issue has been inactive for 30 days. It will be automatically closed after 14 days if no further activity occurs.

github-actions[bot] avatar Jun 19 '25 02:06 github-actions[bot]

This issue was closed because of inactivity.

github-actions[bot] avatar Jul 03 '25 02:07 github-actions[bot]