Skip to content

feat: Update AI routes to provide more context - #3022

Open
Elouan1411 wants to merge 2 commits into
reply-with-euriafrom
update-ai-route
Open

feat: Update AI routes to provide more context#3022
Elouan1411 wants to merge 2 commits into
reply-with-euriafrom
update-ai-route

Conversation

@Elouan1411

@Elouan1411 Elouan1411 commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

The backend allows us to provide more context for the AI route

Copilot AI balanced review requested due to automatic review settings August 10, 2026 13:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Enriches AI email-generation requests with sender, recipients, and subject context.

Changes:

  • Captures compose and reply metadata for AI requests.
  • Expands AI message variables to structured values.
  • Exposes reply-subject formatting for reuse.

Two blocking issues were identified: AI variables are excluded from serialization, and the selected sender identity is ignored.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
DraftInitManager.kt Exposes subject formatting.
NewMessageViewModel.kt Stores the current subject.
NewMessageAiManager.kt Captures subject before navigation.
AiViewModel.kt Adds structured AI context.
AiPropositionFragment.kt Collects compose/reply metadata.
AiMessage.kt Changes the AI variables representation.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread app/src/main/java/com/infomaniak/mail/data/models/ai/AiMessage.kt
@Elouan1411
Elouan1411 force-pushed the update-ai-route branch 2 times, most recently from c12e2a0 to c4b16ba Compare August 11, 2026 15:25
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants