mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-09-21 16:02:20 +00:00
Switching workspaces or reopening a window from the tray throws a pane's TerminalView away and builds a new one over the same daemon pane. The new view starts with no last status, so an agent that was already Done arrives as None -> Done, which poll_agent_status cannot tell from a turn finishing live, and every unfocused rebuilt pane got its unread badge back. The daemon now counts finished turns per agent session (turns, bumped on entering Done), and views leave an app-lifetime mark per (host, pane) of the session, turn count and badge the reader was last shown. A rebuilt view's first sight of Done takes the badge back from a matching mark instead of raising a new one; a turn that finished while the view was gone has no mark or a lower count, and still badges. Fixes #870 Claude-Session: https://claude.ai/code/session_01JRqYZ9E153WpSHGS2AW3BM