* Clear stale agent identity when a pane is reused (codex vs claude) When a terminal pane is reused for a different agent, its launchAgent goes stale. resolveTabAgentFromSignals ignored the terminal title while launchAgent was set and ranked the stale launch ahead of the live title, so the tab icon and notifications kept showing the previous agent (e.g. codex when claude is now running). Extract the title->agent mapping into terminal-title-agent-type.ts and let a live, explicit title override a stale launchAgent once the pane has shown activity. Apply the same guard to notification dispatch so a stored snapshot from a different agent is not reused for the rich notification. Also add the missing MiMo Code title mapping. Fixes #6355 * test(terminal-pane): align completion fixture with live agent identity The working->idle completion test paired a stored codex snapshot with a live '* Claude done' title. After the stale-identity guard, an explicit Claude title correctly drops a mismatched codex snapshot, so the rich notification no longer carried codex's prompt/tool fields. Make the fixture self-consistent (snapshot agentType: 'claude') so the test still verifies the rich completion snapshot flows through on working->idle, matching the corrected dispatch behavior. The discard path is covered separately in use-notification-dispatch.test.ts. Refs #6355 * Harden agent notification snapshot identity guard --------- Co-authored-by: brennanb2025 <brennanb2025@users.noreply.github.com> Co-authored-by: Neil <neil@stably.ai>