neoagent 2.3.1-beta.60 → 2.3.1-beta.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -51,6 +51,7 @@ class NeoAgentController extends ChangeNotifier {
51
51
  static const String _configuredBackendUrl = String.fromEnvironment(
52
52
  'NEOAGENT_BACKEND_URL',
53
53
  );
54
+ static const String _selectedSectionPrefsKey = 'ui.selectedSection';
54
55
 
55
56
  SharedPreferences? _prefs;
56
57
  final FlutterSecureStorage _secureStorage = const FlutterSecureStorage();
@@ -689,6 +690,7 @@ class NeoAgentController extends ChangeNotifier {
689
690
  _prefs?.getBool('desktop.autoShowFloatingToolbar') ?? true;
690
691
  _desktopAssistantHotkeyEnabled =
691
692
  _prefs?.getBool('desktop.assistantHotkeyEnabled') ?? true;
693
+ _restoreSelectedSectionFromPrefs();
692
694
  _voiceAssistantIncludeScreenContext =
693
695
  (_prefs?.getBool('voiceAssistant.includeScreenContext') ?? false) &&
694
696
  canCaptureVoiceAssistantScreenContext;
@@ -1529,6 +1531,9 @@ class NeoAgentController extends ChangeNotifier {
1529
1531
  toolEvents = const <ToolEventItem>[];
1530
1532
  streamingAssistant = '';
1531
1533
  selectedSection = AppSection.chat;
1534
+ unawaited(
1535
+ _prefs?.setString(_selectedSectionPrefsKey, AppSection.chat.name),
1536
+ );
1532
1537
  _selectedWidgetId = null;
1533
1538
  _pendingChatDraft = null;
1534
1539
  _runDetailsCache.clear();
@@ -1576,6 +1581,20 @@ class NeoAgentController extends ChangeNotifier {
1576
1581
  unawaited(_syncHomeWidgetConfig());
1577
1582
  }
1578
1583
 
1584
+ void _restoreSelectedSectionFromPrefs() {
1585
+ final rawSection =
1586
+ _prefs?.getString(_selectedSectionPrefsKey)?.trim() ?? '';
1587
+ if (rawSection.isEmpty) {
1588
+ return;
1589
+ }
1590
+
1591
+ final restoredSection = AppSection.values.firstWhere(
1592
+ (section) => section.name == rawSection,
1593
+ orElse: () => AppSection.chat,
1594
+ );
1595
+ selectedSection = restoredSection;
1596
+ }
1597
+
1579
1598
  Future<void> _syncDesktopCompanionSession() {
1580
1599
  return _desktopCompanion.updateSession(
1581
1600
  backendUrl: backendUrl,
@@ -1586,6 +1605,7 @@ class NeoAgentController extends ChangeNotifier {
1586
1605
 
1587
1606
  void setSelectedSection(AppSection section) {
1588
1607
  selectedSection = section;
1608
+ unawaited(_prefs?.setString(_selectedSectionPrefsKey, section.name));
1589
1609
  if (section == AppSection.devices) {
1590
1610
  unawaited(refreshDevices());
1591
1611
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neoagent",
3
- "version": "2.3.1-beta.60",
3
+ "version": "2.3.1-beta.62",
4
4
  "description": "Proactive personal AI agent with no limits",
5
5
  "license": "MIT",
6
6
  "main": "server/index.js",
@@ -1 +1 @@
1
- 5688ec90b02e934df4a3c734aec6f6ab
1
+ 9d29bc71178d488830002fc181bd7371
@@ -37,6 +37,6 @@ _flutter.buildConfig = {"engineRevision":"42d3d75a56efe1a2e9902f52dc8006099c45d9
37
37
 
38
38
  _flutter.loader.load({
39
39
  serviceWorkerSettings: {
40
- serviceWorkerVersion: "42230949" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
40
+ serviceWorkerVersion: "366687658" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
41
41
  }
42
42
  });