Fix PostgreSQL compatibility and user tracking consistency#70
Merged
nullure merged 2 commits intoCaviraOSS:mainfrom Nov 29, 2025
Merged
Fix PostgreSQL compatibility and user tracking consistency#70nullure merged 2 commits intoCaviraOSS:mainfrom
nullure merged 2 commits intoCaviraOSS:mainfrom
Conversation
- Update user_id handling to use "anonymous" instead of null for consistency with user tracking - Fix dashboard SQL queries to support both SQLite and PostgreSQL parameter syntax (? vs $1/$2) - Add schema-aware queries for PostgreSQL stats table - Fix datetime formatting for PostgreSQL (strftime → to_char/to_timestamp) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- Fix opm CLI authentication header case (bearer → Bearer) - Fix dashboard stats endpoint to use schema-qualified table names for PostgreSQL - Update opm stats command to use correct endpoint (/dashboard/stats) - Fix opm list --user command to use correct route (/users/:id/memories) - Update CLI response parsing to handle both 'items' and 'memories' arrays 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
Author
|
Just FYI - while PR was waiting I already pushed additional fix - 9dd2651 And it was merged together with the original fix. Sorry about that (also this fix was tested from my side) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📋 Description
This PR provides additional PostgreSQL compatibility fixes that build upon #69. Without these fixes, pattern pushes
from the VSCode extension produce server errors when using PostgreSQL as the metadata backend.
Key Changes:
🔄 Type of Change
🧪 Testing
Testing Environment:
📱 Screenshots (if applicable)
N/A - Backend fixes only
🔍 Code Review Checklist
📚 Related Issues
Related to #69 - This PR addresses PostgreSQL compatibility issues not covered in the initial user tracking
implementation. Without these fixes, the VSCode extension encounters server errors when performing pattern pushes
with PostgreSQL as the backend.
🚀 Deployment Notes
📋 Additional Context
During testing of PR #69, discovered that:
These fixes ensure full PostgreSQL compatibility across the codebase.