Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: sync memory UI updates from chat interface
  • Loading branch information
MimicHunterZ committed Apr 6, 2026
commit 1486e6af007119e4efa0a15c7d52fcffe3bcb4f7
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ import androidx.compose.ui.text.input.ImeAction
import com.ai.assistance.operit.R
import com.ai.assistance.operit.ui.features.memory.screens.dialogs.MemorySearchSettingsDialog
import com.ai.assistance.operit.ui.features.memory.screens.dialogs.MemorySearchSimulationDialog
import com.ai.assistance.operit.ui.main.components.LocalIsCurrentScreen

@Composable
fun MemorySearchBar(
Expand Down Expand Up @@ -164,6 +165,14 @@ fun MemoryScreen() {
val uiState by viewModel.uiState.collectAsState()
val keyboardController = LocalSoftwareKeyboardController.current
val scope = rememberCoroutineScope()
val isCurrentScreen = LocalIsCurrentScreen.current

LaunchedEffect(isCurrentScreen, selectedProfileId) {
if (isCurrentScreen) {
viewModel.loadMemoryGraph()
viewModel.loadFolderPaths()
}
}

LaunchedEffect(uiState.error) {
val error = uiState.error ?: return@LaunchedEffect
Expand Down