Konsole not showing user name in the remote tab title

When i’m logging to the remote server the title of the current open Konsole tab changes to:

() REMOTE-SERVER-HOSTNAME

instead of

(MY-USERNAME) REMOTE-SERVER-HOSTNAME

as it should be.

I’ve got (%u) %H in the konsole remote tab title properties so it seems that %u does not work. How can I make it work?

Thanks for the reply,

the problem seems to be with my shell prompt that has a different format that looks like TIME-USER@HOST-PWD$.

I tried to change it to the USER@HOST [PWD]$ but it didn’t solve the problem.

I’m using the ssh command and the shell is bash.
But the cause of the problem is now clear, i’ll experiment some more with the prompt and maybe look at the Konsole source code.