feat: Update AI routes to provide more context - #3022
Open
Elouan1411 wants to merge 2 commits into
Open
Conversation
Elouan1411
force-pushed
the
update-ai-route
branch
from
August 10, 2026 13:01
ff62c73 to
9995ef0
Compare
There was a problem hiding this comment.
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.
Elouan1411
force-pushed
the
update-ai-route
branch
2 times, most recently
from
August 11, 2026 15:25
c12e2a0 to
c4b16ba
Compare
Elouan1411
force-pushed
the
update-ai-route
branch
from
August 12, 2026 07:39
c4b16ba to
1e616ed
Compare
|
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.



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