You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Preserve existing functionality: The resolve_permalink() and read operations would still work with existing permalinks
Complexity: Low to Medium
Why it's straightforward:
Configuration system already supports feature flags (e.g., update_permalinks_on_move, sync_changes, kebab_filenames)
Permalink writing is centralized in a few specific locations
The change is additive (new flag) with minimal risk to existing functionality
Existing permalinks would continue to work for read operations
Implementation estimate:
~50-100 lines of code changes
Main changes in 3-4 files
Test updates needed for the new flag behavior
The feature aligns well with the existing configuration patterns and would provide the flexibility users are asking for without breaking existing functionality.
Activity
phernandez commentedon Sep 26, 2025
@claude how feasible is adding a flag to disable permalinks?
claude commentedon Sep 26, 2025
Claude finished @phernandez's task —— View job
Feasibility Assessment for Disabling Permalinks
Todo List:
Assessment Result
Adding a flag to disable permalinks is highly feasible and relatively straightforward. Here's my analysis:
Current Implementation
Permalinks are written to files in these situations:
sync_service.py:304-310): When a file with frontmatter is synced and the permalink changes or needs to be resolvedentity_service.create_or_update_entity()called fromknowledge_router.py)write_noteis used)Implementation Approach
The change would involve:
Add config flag in
src/basic_memory/config.py:Modify permalink writing logic in 3 key places:
sync_service.py:304-310: Skip the permalink update if flag is setentity_service.py: Skip adding permalink to frontmatter when creating/updating entitiesfile_service.update_frontmatter(): Conditionally skip permalink updatesPreserve existing functionality: The
resolve_permalink()and read operations would still work with existing permalinksComplexity: Low to Medium
Why it's straightforward:
update_permalinks_on_move,sync_changes,kebab_filenames)Implementation estimate:
The feature aligns well with the existing configuration patterns and would provide the flexibility users are asking for without breaking existing functionality.
phernandez commentedon Sep 26, 2025
@claude implement a PR with the change
claude commentedon Sep 26, 2025
Claude encountered an error —— View job
I'll analyze this and get back to you.
claude commentedon Sep 26, 2025
Claude finished @phernandez's task —— View job •
claude/issue-307-20250926-1513• Create PR ➔Implementation Plan
Todo List:
Summary
Successfully implemented the
disable_permalinksconfiguration flag with the following changes:1. Configuration
disable_permalinks: boolfield toBasicMemoryConfig(defaults toFalse)2. Core Service Updates
app_configparameter and skips permalink generation when flag is enabledapp_configtoEntityService3. Behavior
disable_permalinks=True:update_permalinks_on_move=True4. Tests
View job |
feat: Add disable_permalinks config flag