I have the following code snippet and it works fine when launching emacs the normal way. But if using emacsclient with the daemon, then `(tab-bar-rename-tab "main")` doesn't seem to get executed.
Edit: I think I made it work now by utilizing the `server-after-make-frame-hook`.
(use-package tab-bar
:hook (server-after-make-frame . (lambda () (tab-bar-rename-tab "main")))
:config
(tab-bar-mode +1)
(tab-bar-history-mode +1))