mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-18 01:18:13 +00:00
* [MM-68856] Respect default agent and persist last-selected agent in agent selectors
Mobile agent selectors always defaulted to the first agent and did not
remember the user's previous choice, ignoring the system-wide default
agent configured on the server.
Selectors now resolve the active agent with the precedence
saved-preference -> system default (is_default) -> first, and persist
explicit selections via the shared `agents/selected_agent` core
preference so the choice restores across surfaces and clients.
Applied to the rewrite options, channel summary, and agent chat
selectors. Part of a coordinated 3-repo change (webapp,
mattermost-plugin-agents, mobile) sharing the same preference contract.
Co-authored-by: Cursor <cursoragent@cursor.com>
* [MM-68856] Address review feedback on agent selector
- await savePreference in saveSelectedAgent so its errors stay inside the
try/catch and callers get a consistent {error} result.
- Surface persistence failures from the resolved {error} on all three
selector surfaces (agent chat, channel summary, rewrite options) via
logError instead of dropping them silently.
- Rename agent selection tests to the `should...` convention.
Co-authored-by: Cursor <cursoragent@cursor.com>
* [MM-68856] Address review feedback on agent selector structure
Split channel summary and rewrite options HOCs into index files, switch
persist calls to async/await, and cover non-empty selectedAgentId on mount.
Co-authored-by: Cursor <cursoragent@cursor.com>
* [MM-68856] Log agent selection failures with getFullErrorMessage
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
|
||
|---|---|---|
| .. | ||
| about_links.ts | ||
| action_type.ts | ||
| apps.ts | ||
| autocomplete.test.ts | ||
| autocomplete.ts | ||
| calls.ts | ||
| categories.ts | ||
| channel.ts | ||
| classification.ts | ||
| config.ts | ||
| custom_status.ts | ||
| database.ts | ||
| datetime.ts | ||
| deep_linking.ts | ||
| device.ts | ||
| draft.ts | ||
| emoji.ts | ||
| events.ts | ||
| files.ts | ||
| gallery.ts | ||
| general.ts | ||
| image.ts | ||
| index.ts | ||
| integrations.ts | ||
| launch.ts | ||
| license.ts | ||
| list.ts | ||
| members.ts | ||
| navigation.ts | ||
| network.ts | ||
| notification_level.ts | ||
| permissions.ts | ||
| post_draft.ts | ||
| post.ts | ||
| preferences.ts | ||
| profile.ts | ||
| push_notification.ts | ||
| push_proxy.ts | ||
| reaction_picker.ts | ||
| report_a_problem.ts | ||
| screens.ts | ||
| server_errors.ts | ||
| snack_bar.ts | ||
| sso.ts | ||
| supported_server.ts | ||
| team.ts | ||
| tooltip.ts | ||
| tutorial.ts | ||
| versions.ts | ||
| view.ts | ||
| websocket.ts | ||