File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,4 +65,6 @@ SCHEDULE.md
6565/android /app /release
6666
6767tree.md
68- tree.pdf
68+ tree.pdf
69+
70+ _engine /
Original file line number Diff line number Diff line change @@ -1429,17 +1429,6 @@ class _MemorySheetState extends ConsumerState<_MemorySheet> {
14291429 super .initState ();
14301430 _useQdrant = widget.embedding.useQdrant;
14311431 _persistToSqlite = widget.embedding.persistToSqlite;
1432-
1433- // 打开记忆面板时,如果 session provider 尚未设置 (null),
1434- // 立即初始化为 true,让"打开面板 = 启用记忆"
1435- WidgetsBinding .instance.addPostFrameCallback ((_) {
1436- if (ref.read (sessionMemoryRecallProvider) == null ) {
1437- ref.read (sessionMemoryRecallProvider.notifier).state = true ;
1438- }
1439- if (ref.read (sessionMemoryStoreProvider) == null ) {
1440- ref.read (sessionMemoryStoreProvider.notifier).state = true ;
1441- }
1442- });
14431432 }
14441433
14451434 @override
Original file line number Diff line number Diff line change @@ -72,7 +72,13 @@ Future<void> main() async {
7272 final stack = details.stack? .toString () ?? '' ;
7373 if (stack.contains ('flutter_math_fork' )) return ;
7474 }
75- // 其他错误正常处理
75+ // 其他错误:终端 + 日志双写
76+ final errorMsg = '[FlutterError] ${details .exceptionAsString ()}' ;
77+ final stackStr = details.stack? .toString () ?? '' ;
78+ print (errorMsg);
79+ if (stackStr.isNotEmpty) {
80+ print (stackStr.split ('\n ' ).take (8 ).join ('\n ' ));
81+ }
7682 FlutterError .presentError (details);
7783 };
7884
You can’t perform that action at this time.
0 commit comments