Skip to content

Commit 763e3cd

Browse files
feat: Update version to 1.7.13+14, enhance system prompt handling, fix state desync and prevent chat history duplicates
1 parent eb0caa0 commit 763e3cd

3 files changed

Lines changed: 16 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [1.7.13+14] - 2025-12-30
6+
7+
### Fixed
8+
- **System Prompt Injection:** Unified system prompt handling in `restoreChatHistory()` to prepend to first user message (consistent with `chatStream()`). Previously sent as AI message which confused model turn-taking.
9+
- **Corrupted Model Detection:** Added detection of MediaPipe TFLite errors (`ret_check`, `error building`) and auto-deletes corrupted model files for clean re-download.
10+
- **State Desync Bug:** Removed stale `_modelReady` local state in chat_screen - now uses reactive `llmService.isInitialized` directly.
11+
- **Double Initialization:** Removed redundant `_activateModel()` call after `installModel()` in settings_screen.
12+
- **Chat History Duplicates:** Added `_historyLoaded` guard to prevent duplicate message loading.
13+
14+
### Removed
15+
- **Dead Code Cleanup:** Removed unused `_toolModel`, `_activeToolModel`, `hasToolModel`, `activeToolModel`, and `initializeToolModel()` - flutter_gemma only supports one active model at a time.
16+
17+
---
18+
519
## [1.7.9+10] - 2025-12-27
620

721
### Fixed

ios/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
13
1+
14

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: wing_man
22
description: "Wingman - Local AI Dating Assistant"
33
publish_to: 'none'
44

5-
version: 1.7.12+13
5+
version: 1.7.13+14
66

77
environment:
88
sdk: ^3.9.2

0 commit comments

Comments
 (0)