Repository navigation
feat(memory): add a profile selector for built-in memory - #33
Conversation
xraysight
left a comment
There was a problem hiding this comment.
Hi @qwes98, thanks for the PR! Being able to inspect a bot’s built-in memory without switching the active Hermes profile is useful. All 107 tests passed locally, but I’d like to see two changes before merging:
- Check access to the selected profile. A valid profile name tells us where its files are, not whether the request may read them. Please apply the host’s access and plugin-consent checks to the target profile, both when listing profiles and when reading memory. If the host can’t authorize cross-profile access, keep the selector limited to the active profile. Please add a regression test through the host’s auth layer that verifies a request scoped to one profile cannot read another profile’s memory.
- Scope the Desktop cache to the connection and active host profile. Two gateways can both have a profile called default. Please include the connection identity and active host profile in the cache keys for the profile list and selected memory. Add a regression test that switches between two connections with the same profile name and verifies that the previous connection’s memory is never displayed while the new request is pending.
Please ping me when the fixes are ready for another review.
|
Hi @xraysight, thanks for the detailed review. I've pushed commit 09ab748 addressing both requests:
All 109 tests passed locally, along with JavaScript syntax and whitespace checks. Ready for another review when you have a chance. Thanks! |
xraysight
left a comment
There was a problem hiding this comment.
Thanks for the quick follow-up! I re-reviewed both fixes. Profile discovery and memory reads now respect the host’s authorization and target profile consent, and the Desktop cache is scoped to the connection and active profile. All 109 tests passed in an isolated local run, including both Hermes host integration tests. CI is green. Approved.
Summary
The built-in memory view previously followed the host's active profile. This adds a dedicated selector so authorized users can inspect another bot's MEMORY.md and USER.md without changing the host profile.
Verification
Limitations