AI Subject, Description and Action taken support

This commit is contained in:
2026-03-04 00:38:35 +08:00
parent b5449f7842
commit c123c09233
4 changed files with 205 additions and 142 deletions
+2 -2
View File
@@ -334,7 +334,7 @@ final tasksProvider = StreamProvider<List<Task>>((ref) {
.cast<Map<String, dynamic>>()
.map(Task.fromMap)
.toList();
final hash = tasks.fold('', (h, t) => '$h${t.id}');
final hash = tasks.fold('', (h, t) => '$h${t.hashCode}');
if (!controller.isClosed && hash != lastResultHash) {
lastResultHash = hash;
controller.add(tasks); // emit immediately no debounce
@@ -365,7 +365,7 @@ final tasksProvider = StreamProvider<List<Task>>((ref) {
})
.listen(
(tasks) {
final hash = tasks.fold('', (h, t) => '$h${t.id}');
final hash = tasks.fold('', (h, t) => '$h${t.hashCode}');
if (hash != lastResultHash) {
lastResultHash = hash;
emitDebounced(tasks);