Skip to content

Commit 58496a3

Browse files
committed
feat: v1.6.0 Context library — reusable text/code snippets
- SnippetLibrary component with create/edit/delete/search/filter - IndexedDB store with migration v24→v25 - Sidebar nav button + command palette entry - i18n en/zh for all strings - CSS for snippet cards, filters, edit form
1 parent fb15fc6 commit 58496a3

10 files changed

Lines changed: 798 additions & 3 deletions

File tree

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,30 @@ and the browser speaks the response.
696696

697697
Released: 2026-05-13
698698

699+
700+
#### v1.6 — Context Injection
701+
702+
Allow users to attach reusable text and code snippets to any session.
703+
Snippets are injected into the system prompt before each turn, giving
704+
the model persistent context without requiring full RAG.
705+
706+
- [ ] **Context library** — Create, name, and organize text/code snippets;
707+
each snippet has a title, content (markdown), and optional category tag
708+
- [ ] **Session context attachment** — Attach one or more snippets to a session;
709+
attached snippets appear as a collapsible context block in the chat header
710+
- [ ] **Context injection** — Attached snippets are prepended to the system
711+
prompt before each turn; context is visible in a "Context" panel alongside
712+
the message thread
713+
- [ ] **Quick context** — One-click context templates (e.g. "Project README",
714+
"API Reference", "Coding Standards") loaded from a built-in catalog
715+
- [ ] **Context search** — Search the snippet library by title and content;
716+
filter by category
717+
718+
**Release gate**: a user creates a snippet, attaches it to a session, and the
719+
model's response reflects knowledge of the snippet content.
720+
721+
Released: 2026-05-13
722+
699723
#### Cross-cutting standing rules
700724

701725
These apply to **every** version and are enforced by the cron:

0 commit comments

Comments
 (0)