Refine chat list styles and scrolling behavior#110
Merged
Conversation
Show available agents in the expanded session UI and add backend discovery logic. ExpandedSessionView now displays an agents count next to skills and provides a ShowAgentsPopup that renders a styled popup with agent name, source and truncated description. CopilotService gains DiscoverAvailableAgents which scans project agent directories (.github/agents, .claude/agents, .copilot/agents) for Markdown files, reusing the existing frontmatter parser and populating AgentInfo records while deduplicating names and catching errors. Adds AgentInfo record and safe directory/file handling.
Track unread assistant messages and surface system notifications when agents finish. Introduces LastReadMessageCount and UnreadCount to AgentSessionInfo and updates CopilotService to set last-read counters when sessions are switched or messages arrive. Adds UI unread badges to SessionListItem and SessionCard with corresponding CSS, and adjusts ExpandedSessionView layout spacing. Integrates a notification manager: App now requests INotificationManagerService initialization, Settings exposes a toggle to enable notifications and initializes the service when enabled, and CopilotService sends a trimmed completion notification (with permission checks) when an agent completes. Also includes a utility to build a concise notification body from assistant content.
Adjust chat message list UI and scrolling logic. CSS: tweak compact and full modes (gaps, font sizes, paddings, radii, background/opacities), reduce avatar sizes, center system text, refine tool/reasoning and action-box styling for a denser, cleaner layout. Dashboard.razor: pass MessageCount into SessionCard (using cardMessageCounts with fallback) and limit the auto-load IntersectionObserver selector to messages within expanded views. wwwroot/index.html: change restoreDraftsAndFocus to auto-follow only expanded '.messages' (with near-bottom tracking) while '.card-messages' (grid cards) only scroll to bottom on init and do not fight user scrolling.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.