Skip to content

Conversation

@crspeller
Copy link
Member

@crspeller crspeller commented Nov 26, 2025

Summary

This PR adds mobile support for the Agents RHS (right-hand side) interface, including:

  • Agents button in sidebar: New menu option to access agents functionality
  • Agent threads list screen: View and manage all agent conversations in one place
  • Agent chat screen: Dedicated interface for chatting with AI agents
  • Bot selector bottom sheet: Choose between multiple agents with avatar display, replacing the previous click-and-cycle behavior
  • Auto-navigation: Automatically navigate to thread view after sending a message to an agent

This implementation provides a native mobile experience for the agents feature, allowing users to interact with AI agents directly from the mobile app.

Original PR that added post and streaming support: #9317

Ticket Link

https://mattermost.atlassian.net/browse/MM-66762

Device Information

This PR was tested on: Pixel 7 android 16

Screenshots

Screenshot_20251212-184538 Screenshot_20251212-184519 Screenshot_20251212-184458 Screenshot_20251212-184556

Release Note

Added mobile support for AI agents including a dedicated agents menu, agent chat interface, threads list view, and bot selector with profile pictures.

@github-actions
Copy link

github-actions bot commented Nov 26, 2025

Coverage Comparison Report

Generated on December 12, 2025 at 17:48:53 UTC

+-----------------+------------+------------+-----------+
| Metric          | Main       | This PR    | Diff      |
+-----------------+------------+------------+-----------+
| Lines           |     86.18% |     86.12% |    -0.06% |
| Statements      |     86.06% |     86.00% |    -0.06% |
| Branches        |     72.61% |     72.61% |     0.00% |
| Functions       |     85.40% |     85.33% |    -0.07% |
+-----------------+------------+------------+-----------+
| Total           |     82.56% |     82.51% |    -0.05% |
+-----------------+------------+------------+-----------+

Base automatically changed from agents to main December 9, 2025 11:56
Implements a dedicated agents interface accessible from the home screen, featuring:
- Agent chat screen with bot selector and message input
- Thread list screen showing all agent conversations
- Remote actions for fetching bots and threads from plugin API
- Navigation between chat, threads, and individual conversations
- Integration with plus menu for easy access

Follows similar pattern to playbooks with modal screens and navigation helpers.
Change robot-happy-outline to robot-happy to resolve PropType validation error.
- Add AgentsButton component to channel list sidebar below Drafts
- Fix thread navigation to use fetchAndSwitchToThread instead of switchToChannelById
- Replace custom TextInput with PostDraft component in agent_chat
- Fix icon name from message-reply-text-outline to reply-outline
- Add missing i18n translations for agents UI
…ycle behavior with a proper bottom sheet menu showing all available agents with their profile pictures. Add bot avatar display to the dropdown button for better visual identification.
@crspeller crspeller marked this pull request as ready for review December 12, 2025 17:49
@crspeller crspeller added the 2: Dev Review Requires review by a core commiter label Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2: Dev Review Requires review by a core commiter release-note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants