Skip to content

remove 200char limit#3462

Merged
mdmohsin7 merged 1 commit intomainfrom
remove-mem-limit
Nov 20, 2025
Merged

remove 200char limit#3462
mdmohsin7 merged 1 commit intomainfrom
remove-mem-limit

Conversation

@mdmohsin7
Copy link
Copy Markdown
Member

@mdmohsin7 mdmohsin7 commented Nov 20, 2025

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request successfully removes the 200-character limit from the MemoryDialog by enabling multi-line input. However, this change introduces a critical regression by removing the UI for selecting memory visibility. As a result, new memories are always created as 'private', and it's no longer possible to edit a memory's visibility through this dialog. I've left a specific comment on this issue. Furthermore, another part of the app for editing memories, MemoryEditSheet, was not updated, so it still enforces a 200-character limit, creating an inconsistent user experience.

Comment on lines +109 to +138
child: ElevatedButton(
onPressed: () {
if (contentController.text.trim().isNotEmpty) {
if (widget.memory != null) {
widget.provider.editMemory(widget.memory!, contentController.text);
MixpanelManager().memoriesPageEditedMemory();
} else {
widget.provider
.createMemory(contentController.text, MemoryVisibility.private, MemoryCategory.interesting);
MixpanelManager().memoriesPageCreatedMemory(MemoryCategory.interesting);
}
Navigator.pop(context);
}
},
style: ElevatedButton.styleFrom(
backgroundColor: Colors.deepPurpleAccent,
foregroundColor: Colors.white,
padding: const EdgeInsets.symmetric(vertical: 14),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(12),
),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Icon(
Icons.keyboard_return,
size: 13,
color: Colors.grey.shade400,
),
const SizedBox(width: 4),
Text(
'Press done to save',
style: TextStyle(
color: Colors.grey.shade400,
fontSize: 11,
),
),
],
),
),
Text(
'${contentController.text.length}/200',
style: TextStyle(
color: Colors.grey.shade500,
fontSize: 11,
child: Text(
widget.memory != null ? 'Update Memory' : 'Save Memory',
style: const TextStyle(
fontSize: 16,
fontWeight: FontWeight.w600,
),
),
],
),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

This refactoring removes the ability for users to control a memory's visibility, which is a significant functional regression.

  1. Creating memories: New memories are now hardcoded to private visibility (line 117). Previously, they defaulted to public, and the user could choose a different visibility.
  2. Editing memories: The option to change an existing memory's visibility has been removed from this dialog.

This change is not mentioned in the pull request description. If this loss of functionality is unintentional, the visibility controls should be restored. If it is intentional, this breaking change should be clearly communicated to users.

@mdmohsin7 mdmohsin7 merged commit ef41bc6 into main Nov 20, 2025
1 check passed
@mdmohsin7 mdmohsin7 deleted the remove-mem-limit branch November 20, 2025 11:48
Glucksberg pushed a commit to Glucksberg/omi-local that referenced this pull request Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant