mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-18 05:43:38 +00:00
Review feedback (Codex P2 + Copilot): resolveWorkspaceTabLabel derived its label and its distinct-host "+N" count from resolveSessionTabTitle, which folds in the dynamic shell/agent title. Two problems: - those live titles are published only to the session presentation store, not the plain session records passed to the tab, so the label went stale under dynamicTabTitleMode 'agent'/'all'; - per-pane dynamic titles differ on a single host, so the "+N" suffix fired even when every pane was on the same host. Use getSessionConnectionLabel (rename / host label) — the stable host identity — for both the primary label and the distinct-host set. This is also what the tab is meant to convey (which host), and it needs no presentation-store subscription. Drops the now-unused dynamicTabTitleMode argument from resolveWorkspaceTabLabel.