Tab keeps having subtitle if it's set to blank

I know it's probably a premature reaction to the new feature I discovered in Beta, but still!

Looks like there's a condition somewhere (PSMYosemiteTabStyle.m / PSMTabBarCell.m?) that makes iTerm totally ignore the empty string in the profile's subtitle, thus not resetting the state of tab back to a single-line one. Tried to create a blank user-defined variable and using it with an interpolated string, still no luck.

Detailed steps to reproduce the problem:

  1. Create a profile "p1" with a blank subtitle, create a profile "p2" with a subtitle (say, "test")
  2. Create a new session using p2
  3. Set that session to use p1

What happened: Nothing happened :( the tab still has a "test" subtitle

What should have happened: I think the subtitle should've been removed from the tab

image tabs on this screenshot:

  1. the one that had used exclusively the p1 profile (looks good)
  2. the one that had used exclusively the p2 profile (looks good)
  3. the one that had used p2, then switched to p1 (looks screwed since p1 doesn't have subtitle and it kept the p2's subtitle value)

I'm very sorry for creating an issue, but I spent literally hours trying to build it (even updated to Big Sur for the latest Xcode) with no success whatsoever.
Happy new year and thanks for your unbelievable work!