feature/insight-chat-improvements #83
Reference in New Issue
Block a user
Delete Branch "feature/insight-chat-improvements"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Insight tool updates, prompt restructuring for more flexibility.
Five sequenced PRs: 1. Split generation system prompt + neutralize user message 2. system_prompt field on chat request (ephemeral / amend-persisted) 3. fetch_messages_for_contact honors days_radius 4. ToolGateOpts + per-tool description rewrites + search_messages gains start_ts/end_ts/contact_id 5. FileViewer-React: persona system_prompt on every turn + style note Each PR independently mergeable. Tests inline TDD per task. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>- Drop redundant `use anyhow::Context` inside has_any_faces (already imported at the module level). - Drop dead `.unwrap_or("?")` on bound faces — the vec is filtered to is_some() so the fallback can never fire. - Reorder the face_dao constructor param + initializer to match the struct declaration (between tag_dao and knowledge_dao). Update both state.rs call sites and populate_knowledge.rs to match. - Hold face_dao lock once across the library-resolver loop instead of reacquiring per iteration. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>