The panel stored notes, todos and plans inside one shared JSON file that six unrelated domains also wrote to, synchronised itself through window CustomEvents, and could only read plans. It is now Project knowledge: server-owned storage with explicit routes, a store with rollback, a section sidebar, plans that open and edit in place, and search across all of it. Notes and plans the user pins travel with every message sent in that project. Pinning is project state, not an attachment to one message, so it holds until unpinned and the work status panel names what is riding along and can detach it. Agent memory is added alongside, in two scopes: what is true about the user, and what is true about this codebase. The split is not cosmetic — a wrong project fact costs one project and is noticed, while a wrong global fact quietly shapes every session everywhere and the user has no code to check it against. It stays separate from notes so an agent mistake cannot land in what the user wrote. Sessions receive an index of titles only; bodies are read on demand, because an index carrying full text grows until it crowds out the conversation. Deciding what a session must be told, and whether it has been told, now lives on the server. The client owned it before, which meant sessions started without a UI — scheduled tasks, sessions the agent dispatches — received nothing at all, and a tab's record of what it had sent outlived the conversation: after compaction the agent no longer held the block while the tab went on believing it did. What was delivered is recorded in the session's own metadata, and compaction restores it through the runtime that already restores pinned messages, in the same turn. Agent memory ships dark behind OPENCHAMBER_MEMORY_ENABLE: unset, there is no tool, no routes, no session index, no settings row and no panel tab. Absent rather than switched off, so nothing invites turning on a feature that has not been announced. Pinned notes and plans are unaffected and ship as normal.
Icon System
OpenChamber uses an SVG sprite-based icon system for performance. Remixicon glyphs and explicitly registered custom glyphs are rendered via a single hidden SVG sprite injected into the DOM, referenced by <use href="#oc-icon-name"/>.
Usage
import { Icon } from "@/components/icon/Icon";
<Icon name="arrow-down-s" className="h-4 w-4" />
<Icon name="loader-4" className="size-4 animate-spin" />
Icon Names
Icons use kebab-case names based on Remixicon. To find an icon name:
- Start from the Remixicon component name:
RiArrowDownSLine - Remove
Riprefix →ArrowDownSLine - Convert to kebab-case →
arrow-down-s
Common suffixes:
Line/Fillare dropped from the sprite name- Numbers are preserved:
RiChat4Line→chat-4
Adding a New Icon
- Import and use it in your code:
<Icon name="new-icon-name" /> - Run
bun run icons:spriteto regenerate the sprite with the new icon - The script scans
packages/ui/srcfor allRiXusages and extracts SVG paths
If the icon doesn't exist in the sprite, the script will warn you.
Custom product glyphs are registered in scripts/generate-icon-sprite.mjs. They must use the shared 24x24 viewbox and currentColor so they match Remixicon sizing and theme behavior.
Sizing
The Icon component does not have a size prop. Use Tailwind classes instead:
<Icon name="arrow-down-s" className="h-4 w-4" /> {/* 16px */}
<Icon name="arrow-down-s" className="size-5" /> {/* 20px */}
<Icon name="arrow-down-s" className="h-6 w-6" /> {/* 24px */}
Type Safety
import type { IconName } from "@/components/icon/icons";
const icon: IconName = "arrow-down-s"; // type-checked
Architecture
sprite.ts— Auto-generated SVG path data (runbun run generate-icon-spriteto regenerate)Icon.tsx— The<Icon>component, injects sprite on first mounticons.ts— TypeScript typeIconName
The sprite is injected as a hidden <svg id="openchamber-icon-sprite"> element containing <symbol> elements. Each <Icon> renders <svg><use href="#oc-{name}"/></svg>.
Migration from @remixicon/react
Old:
import { RiArrowDownSLine } from "@remixicon/react";
<RiArrowDownSLine className="h-4 w-4" />
New:
import { Icon } from "@/components/icon/Icon";
<Icon name="arrow-down-s" className="h-4 w-4" />
If an icon is used as a component reference (not JSX):
// Old: const icon = RiStackLine; return <icon />;
// New: const icon: IconName = "stack"; return <Icon name={icon} />;