AI feature not visible in mail app

Issue

Nextcloud Assistant works in its own window, but no AI actions (✨ summarize/rewrite/translate) appear in the Mail app when selecting text in read view or composer.
Context integration appears not to mount in Mail.

Environment

Nextcloud core: 32.x (self-hosted, Apache)
Apps enabled and versions:
    Mail: latest compatible with NC 32 (exact version: please confirm)
    Text: 6.0.0-dev.0 (from App Store for NC 32)
    Nextcloud Assistant: latest compatible with NC 32 (please confirm version)
    Nextcloud Context Agent: 2.1.0 (enabled)
    Context Chat Backend: 4.5.0 (enabled)
Email provider: Hostinger IMAP/SMTP (works for mail sync and compose)

Observed behavior

Assistant chat works and responds normally.
In Mail, selecting text does not show the ✨ button in the inline/formatting toolbar (both in read view and composer).
Formatting toolbar itself appears, but without AI options.
No user-level “AI in Mail” toggle exists (understood).

Troubleshooting performed

Verified Context Agent and Context Chat Backend are enabled.
Ran maintenance tasks:
    occ app:update --all
    occ maintenance:repair
Restarted Apache.
Cleared generated frontend assets:
    Removed data/appdata_/css/ and data/appdata_/js/, restarted Apache, hard-refreshed browser (incognito).
Tested in multiple browsers/private window.
Confirmed no CSP or 404s for assistant/context chunks after purge; however, Mail UI logs persistent frontend errors.

Relevant console/log errors (from Mail page)

Uncaught TypeError: can't access property "querySelectorAll", e is null (focus-trap index.esm.js)
TypeError: this.vm.$destroy is not a function (DisplayContactDetails.vue)
Occasional warnings:
    TypeError: Element.scrollIntoView: 'top' not valid for ScrollIntoViewOptions
    XHR 400 Bad request for /apps/mail/api/messages?mailboxId=… (Mail continues syncing; inbox loads)
No explicit “assistant” or “context” registration messages visible in console.

What we need help with

Confirm whether NC 32 + Mail + Assistant + Context Agent + Text 6.0.0-dev.0 is a supported combination for AI actions in Mail.
Identify if the above frontend errors indicate a known bug preventing the Assistant/context toolbar from mounting in Mail on NC 32.
Provide guidance or patches to enable the ✨ actions in Mail, or advise specific compatible versions of Mail/Text/Assistant/Context Agent for NC 32.

Attachments/screenshots available

Assistant chat working
Mail composer with no ✨ icon
Apps page showing Context Agent 2.1.0 and Context Chat Backend 4.5.0 enabled
Apps page showing Text 6.0.0-dev.0 installed
Browser console logs (as above)

Contact/host details

Web server: Apache on Linux
Nextcloud path: /var/www/nextcloud
occ available and used as www-data

Hi @Abhi_Chaturvedi,

would you mind filing a Github issue? Please search existing issues matching your topic before filing a new one. Please reference the issue here as well.

Thank you and have a good day.
christianlupus

AI feature not visible in mail and Talk · Issue #11791 · nextcloud/mail · GitHub. Link to the issue raised on GitHub

1 Like