Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

plan: P6.5 per-message re-fetch, detail fetch fixes, cache rebuild

Adam Eivy9e555d842fda
diff --git a/PLAN.md b/PLAN.md
index 5289f2a40c..9906a3ba54 100644
--- a/PLAN.md
+++ b/PLAN.md
@@ -284,6 +284,7 @@ Always review before send — AI-generated drafts go to an outbox queue. The use
- [x] **P5: Per-action model selection** — Separate provider/model configs for triage vs reply generation (different cost/capability tiers). Expand `settings.messages` to `{ triage: { providerId, model }, reply: { providerId, model } }`. Update ConfigTab with two `ProviderModelSelector` sections.
- [x] **P6: Prompt injection hardening** — XML-fence untrusted email content in AI prompts to prevent injection. Add content sanitization layer (`sanitize()` escapes `<>`), `<emails>` XML fencing on eval prompt.
+- [ ] **P6.5: Per-message re-fetch & detail fetch fixes** — Add "Refresh" button per message in MessageDetail that re-clicks into the conversation in Outlook and re-extracts full body (bypasses cache `bodyFull` check). Also: fix side-effect of detail fetch marking messages as read in Outlook (click opens them); consider extracting via Outlook's reading pane preview mode or re-marking as unread after extraction. Add inbox-level "Fetch Full Content" button that runs detail fetch for all preview-only messages. Clear/rebuild cache option in Config for debugging stale data.
- [ ] **P7: Digital Twin voice drafting** — Draft responses using Digital Twin voice/style (reads COMMUNICATION.md, PERSONALITY.md, VALUES.md + recent thread context)
- [ ] **P8: CoS Automation & Rules** — Automated classification on new emails via CoS job, rule-based pre-filtering, email-to-task pipeline, priority email notifications
- [ ] **P9: Auto-Send with AI Review Gate** — Remove human-in-the-loop for trusted accounts. Before auto-sending, a second LLM call reviews the draft against the original email for: prompt injection artifacts, off-topic content, tone/identity drift, leaked system instructions. Configurable per-account trust level (manual → review-assisted → auto-send). See [Messages Security](./docs/features/messages-security.md) for threat model.