You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Prompt display error in many different terminals since upgrade to debian trixie and fish 4.0.2 #11749
fish --version : fish, version 4.0.2
OS : Debian GNU/Linux 13 (trixie)
Since upgrade from debian 12 bookworm to debian 13 trixie on many devices, i get issues with some terminal apps (like termux on android, Apache guacamole ssh, proxmox novnc).
When I'm connecting by ssh to those systems, i get the following in the prompt :
Type help for instructions on how to use fish
;special_key=1root@pve ~#
When I'm connecting by ssh with termux (android), i get :
Type help for instructions on how to use fish
root@pve ~# ;1m
I saw a similar issue : #11609
I know the problem is not coming from fish but from terminal which don't correctly implement some new standard or protocol.
But the fact is it's really annoying as fish has became unusable.
Somebody proposed here to include an option in fish to fallback to old standard (as before v4.0) : set fish_prompt_marking_enabled false
Is it something that could be implemented easily ? Because it would be a great workaround until all different terminals project have been updated (if they can or want) to adopt the new standards / protocols.
- the termux issue has been fixed (termux/termux-app#4417)
- the proxmox novnc one is within reach of being fixed (https://bugzilla.proxmox.com/show_bug.cgi?id=6575)
(note that you can also work around it by switching to proxmox' xterm.js via a dropdown)
- haven't heard reports of Apache Guacamole before; so that one needs a tracking issue AFAIK
Somebody proposed here to include an option
I'd be happy to have these options added; not adding them was clearly a mistake;
though even if we add them now, I don't know if that can reach users in time; release cycles are somehow very long and it depends on other people.
If we never bite the bullet of enabling these by default, these things will never be fixed.
Hi @krobelus, about termux, I made a mistake sorry, it's not in it (it works in termux indeed) but in Termius.
Proxmox side xterm.js is only available for LXC containers, not KVM VM except those with a serial socket but it's not working out of the box without further config.
I'd be happy to have these options added; not adding them was clearly a mistake;
though even if we add them now, I don't know if that can reach users in time; release cycles are somehow very long and it depends on other people.
If we never bite the bullet of enabling these by default, these things will never be fixed.
I understand your point of view. As a workaround, it should target the most effective and I belive the best to hotfix is at fish side (one change to fix them all).
Btw in term of release cycle, guacamole is the worse here. If you need a fix right now, you need to build app yourself or wait months if not a year sadly.
- reported the termius bug (https://support.termius.com/hc/requests/27980)
- proxmox novnc terminal fixes have been proposed (https://bugzilla.proxmox.com/show_bug.cgi?id=6575 and mailing list)
- PR for Apache Guacamole is here apache/guacamole-server#613
We've had dozens of bug reports about these issues; users only
report them to fish but not to the terminal which owns the bug[^1].
I guess it looks like a fish issue on the surface. My point is,
the situation will never get better unless someone reports issues.
After we add the option to turn off prompt marking, probably even fewer
people will contribute bug reports; I wonder if that will ultimately
cause more pain.
We have a list of some 50 terminals we can test but there are more
used in practice, and some of them are not easy to run on Linux/macOS,
so we rely on the community.
Btw in term of release cycle, guacamole is the worse here. If you
need a fix right now, you need to build app yourself sadly.
That's a useful skill though, for example in this case you could build
fish from source to fix it immediately.. of course that doesn't scale
[^1]: these issues are very rarely actual missing features in the
terminal. Case in point: all three terminals above try to parse
the relevant escape sequences, they just did it wrong.
Hi @krobelus thanks and good job for the bug reports!
That's a useful skill though, for example in this case you could build
fish from source to fix it immediately.. of course that doesn't scale
I know how to build and sometimes it's very usefull yes. But the fact is it's just a boring task for an sysadmin to maintain multiple package out of tree at home without a setted up build chain.
However, here as you seem to say, is there some branch of fish I can build to workaroud my issue? If it's the case, it would be great to know as I would do it by waiting all terminal would be fixed upstream.
Yeah I plan to add a workaround, not yet sure if it should be a
feature flag (that will be impossible (or harder) to turn off after
perhaps a few years), or an actual setting.
Hi @krobelus, just try to backport your commit 6900b89 to debian sources package (4.0.2) with no success. The package build but the feature no-mark-prompt doesn't seem to work as my issue persist with it.
Is the commit 6900b89 is self sufficiant or I also need the fix of terminal.rs. Besides this file (terminal.rs) is not present in 4.0.2 sources.
I really like to backport your hotfix to debian 13 source package to keep fish as stable as possible and upgrade from debian when this feature will be package.
Thanks for your help.
Ok so I was wrong, fix seems to be applied well but for Guacamole or Termius for instance, if I want it to work, I need this features disabled : no-mark-prompt no-keyboard-protocols
@zanchey since people are already backporting stuff, can't we make
weekly patch releases to avoid that need.
just tried to backport your commit
6900b89
to debian sources package (4.0.2) with no success.
that definitely works (no other changes necessary). Did you read the
commit message? Running
fish -i | string escape | grep 133
and pressing ctrl-d should show the OSC 133 marker,
unless "fish_features=no-mark-prompt" is in effect
@krobelus Yes it works well with your test.
It just the no-keyboard-protocols which was missing in my case. I need both of them disable to have a working fish shell with all my terminal apps (termius, guacamole etc).
So for me it's all good. Thanks for your works and your support. Really appreciate.
Activity
krobelus commentedon Aug 21, 2025
Raptor039 commentedon Aug 21, 2025
Hi @krobelus, about termux, I made a mistake sorry, it's not in it (it works in termux indeed) but in Termius.
Proxmox side xterm.js is only available for LXC containers, not KVM VM except those with a serial socket but it's not working out of the box without further config.
I understand your point of view. As a workaround, it should target the most effective and I belive the best to hotfix is at fish side (one change to fix them all).
Btw in term of release cycle, guacamole is the worse here. If you need a fix right now, you need to build app yourself or wait months if not a year sadly.
GUACAMOLE-???: Terminal's OSC parser to not stop on unhandled characters
krobelus commentedon Aug 23, 2025
GUACAMOLE-???: Terminal's OSC parser to not stop on unhandled characters
Raptor039 commentedon Aug 26, 2025
Hi @krobelus thanks and good job for the bug reports!
I know how to build and sometimes it's very usefull yes. But the fact is it's just a boring task for an sysadmin to maintain multiple package out of tree at home without a setted up build chain.
However, here as you seem to say, is there some branch of fish I can build to workaroud my issue? If it's the case, it would be great to know as I would do it by waiting all terminal would be fixed upstream.
krobelus commentedon Aug 26, 2025
krobelus commentedon Aug 26, 2025
for a quick fix, try this (this applies to latest master; should be easy to backport to 4.0.2, grep for
\b133\b)Add mark-prompt feature flag
krobelus commentedon Aug 27, 2025
Pushed 6900b89 (Add mark-prompt feature flag, 2025-08-27) to
Integration_4.0.3leaving this open in case we want to have it in 4.1 too
Raptor039 commentedon Sep 1, 2025
Hi @krobelus, just try to backport your commit 6900b89 to debian sources package (4.0.2) with no success. The package build but the feature no-mark-prompt doesn't seem to work as my issue persist with it.
Is the commit 6900b89 is self sufficiant or I also need the fix of terminal.rs. Besides this file (terminal.rs) is not present in 4.0.2 sources.
I really like to backport your hotfix to debian 13 source package to keep fish as stable as possible and upgrade from debian when this feature will be package.
Thanks for your help.
Raptor039 commentedon Sep 1, 2025
Ok so I was wrong, fix seems to be applied well but for Guacamole or Termius for instance, if I want it to work, I need this features disabled :
no-mark-prompt no-keyboard-protocolskrobelus commentedon Sep 1, 2025
Raptor039 commentedon Sep 1, 2025
@krobelus Yes it works well with your test.
It just the no-keyboard-protocols which was missing in my case. I need both of them disable to have a working fish shell with all my terminal apps (termius, guacamole etc).
So for me it's all good. Thanks for your works and your support. Really appreciate.
Raptor039 commentedon Sep 2, 2025
Hi,
For information, Termius has been fixed today :
Thanks for your hard work again @krobelus 🤗
Add mark-prompt feature flag
Add mark-prompt feature flag
Add mark-prompt feature flag