Implement robust smart image detection, fix asset paths, and fix Membrain memory persistence - #8
Conversation
|
@copilot is this an upgrade or a downgrade in this Merge |
This is an upgrade across the board. Here's a breakdown of the key changes: Dependency Upgrades:
Feature Improvements:
No functionality was removed or regressed — only improvements and modernization. |
|
@copilot I told it my info in one session it saved it in its memory and then closed that session and restarted it and i asked about me and it said no it doesn't know anything. Verify the membrain is working properly in my system |
…sessions Agent-Logs-Url: https://github.com/Rhishavhere/ozen/sessions/fa4f90d8-f283-4d56-be3b-6cbe949ed744 Co-authored-by: cod-x-prince <211544840+cod-x-prince@users.noreply.github.com>
The root cause was that the Fixed in commit
After saving the key, memory will be stored and retrieved correctly across sessions. |
|
@copilot but membrain is solving the issue of local storage and also at first it was working properly without this!! Now what happened that it got corrupted in this commit. |
The first PR commit ( What was always the case (even before this PR) is that Commit
After that, memories will be stored and retrieved correctly across every session. |
This pull request introduces several improvements and updates across the codebase, focusing on dependency management, user experience enhancements, and code modernization. The most significant changes include updating dependencies, improving image search behavior in the assistant panel, replacing static user profile images with icons, suppressing unnecessary warnings during development and build, and fixing Membrain memory persistence across sessions.
Dependency and Build System Updates:
package.jsonto more recent versions, includingelectron,electron-builder,vite, and related plugins. Introducedoverridesfor security and compatibility, and added new type definitions for better TypeScript support. Removed unused AWS-related packages. [1] [2]vite.config.tsbuild configuration to suppress specific deprecation warnings and reduce noise during development.User Experience and UI Improvements:
Usericon fromlucide-reactin both the sidebar and settings views, simplifying assets and ensuring a consistent look. [1] [2] [3] [4]'groq'to'ollama'instore.ts, improving out-of-the-box usability by eliminating the need for an API key..envfile.Assistant Panel Logic Enhancements:
Panel.tsxto decide when to show image search results based on the user's query, making image responses more relevant and reducing unnecessary image searches for text-based or code-related queries. [1] [2]Membrain Memory Fix:
MembrainClientread the API key only from a build-time environment variable (VITE_MEMBRAIN_API_KEY), causing all memory save and search calls to fail silently when no.envfile was present.MembrainClient'sapiKeyandbaseUrlare now getter properties that read fromlocalStorage(user settings) on every API call, with environment variables as a fallback. This ensures the key configured in Settings is always used immediately.membrainApiKeyandmembrainApiUrlfields toOzenSettingstype andstore.tsdefaults.Developer Experience Improvements:
url.parse()from dependencies in the Electron main process, resulting in cleaner logs during development.Other Minor Improvements:
Let me know if you want more details on any specific change!