Memory PanelPro
What the assistant remembers about you, by category: filter or search it, pause a memory, edit or forget it with a short undo, add your own, or switch memory off without losing anything.
oxyn add memory-panelMemory
8The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
Rendered from Rust at build time · goes live when visible
When to use
- Show what the assistant remembers about you, grouped by category, and let you switch memory off, filter, search, edit, pause, forget (with undo) and add memories.
When not to use
- An agent asks before it acts: use Approval Card instead.
- Several open requests in one card: use Approval pager instead.
- An agent's question in its own card above the composer: use Decision Card instead.
Installation
Memory Panel is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.
oxyn add memory-panelUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Default
Eight memories in three groups, one paused. Point at a row for Edit, Pause and Forget.
Memory
8Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Filtered
The Projects chip picked: other groups fold away.
Memory
8Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Search
Search open: the chips give way to a field and the list filters as you type.
Memory
8Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Tray
A row pointed at: light fill, the three actions, and the status line names its category.
Memory
8Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Undo
A memory forgotten: the counts drop and the last line offers Undo for a few seconds.
Memory
7Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Off
Memory switched off: a note unfolds, the list dims, nothing is deleted.
Memory
8New chats won't read or save memories while this is off. Nothing below is deleted.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
New
New memory: a field, a category and Save (disabled until there is text).
Memory
8Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Classic
Classic style: header and status bands, squarer card.
Memory
8Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
MemoryPanel
| Prop | Type | Default | Description |
|---|---|---|---|
memories | Option<Vec<MpMemory>> | Default::default() | The memories (the demo's when `None`). |
categories | Option<Vec<String>> | Default::default() | Categories in display order (the demo's when `None`). |
enabled | bool | true | Memory on at the start. |
filter | Option<String> | Default::default() | Category filter at the start (`None` = All). |
search | Option<String> | Default::default() | Open the search with this query at the start. |
adding | bool | Default::default() | Open the new-memory editor at the start. |
pointed | Option<String> | Default::default() | Show this memory's tray at the start (as if pointed at). |
forgotten | Option<String> | Default::default() | Forget this memory at the start (its undo line shows). |
undo_ms | u64 | 5000 | How long Undo stays, ms. |
title | String | "Memory" | Heading. |
max_height | u32 | 360 | The list's maximum height, px (it scrolls past it). |
nowrequired | ClockMs | — | The clock (drives Undo). |
style | String | Default::default() | `clean`, `classic`, or empty to follow `data-cstyle`. |
on_change | EventHandler<Vec<MpMemory>> | — | The memories changed (after add, edit, pause, forget or undo). |
on_enabled_change | EventHandler<bool> | — | The master switch changed. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Switch, chips, search, each memory's actions, New memory |
| ←or→ | Moves between the category chips |
| Enter | Saves an edit or a new memory (Shift+Enter: new line) |
| Escape | Cancels an edit, the new memory or the search |
Accessibility
- Use memory is a role=switch; the chips are a radiogroup with roving focus; Pause is a toggle (aria-pressed).
- Each row's actions also appear on keyboard focus, not only on hover.
- Saves, pauses, forgets and undos are read out by a polite status region.
Responsive behaviour
- A narrow card (320 px, shrinks with its container); the chip row scrolls sideways instead of wrapping.
- Past 360 px the rows scroll within the card.
Edge cases (spec)
Fixed 320 px card, shrinking to its container; the tray overlays the row so nothing reflows on hover.
Notes for AI
- Import
MemoryPanelfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
MemoryPanelElinoxyn_gpui. - Props to set first:
now. - It reads a clock (
now) for live timers; pass one clock for the whole page rather than one per component. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.