Rapidly opening multiple tabs loses symlink component of current working directory
This is a slightly rephrased version of https://gitlab.gnome.org/chergert/ptyxis/-/issues/570 because Terminator suffers from a very similar problem.
Describe the bug
UI bug: There's a timing issue when using CTRL+SHIFT+T to open new tabs, in that it loses the context of the 'current working directory'
This works fine if you do it slowly i.e. wait for the new tab to show the command prompt before repeating the new tab action, but otherwise, because the UI context immediately switches to the new tab, which doesn't initially have the sense of 'current directory' including the symlink bits repeating the CTRL+SHIFT+T means that the third tab opened reverts to the default of opening in the resolved directory.
To Reproduce
- Change to some directory with a symlink component (e.g. /bin on many systems)
- Hit CTRL+SHIFT+T twice rapidly
- First 2 tabs will be in target directory, third one will be in its resolved location (e.g. /usr/bin)
Expected behavior
All 3 tabs should be in the same directory with a symlink component
Xfce Terminal is fast enough that I cannot press Ctrl+Shift+T twice rapidly enough. But the bug can easily be triggered by holding down Ctrl+Shift+T for a bit longer, or by inserting a sleep 1 at the beginning of .bashrc.