Commit graph

11 commits

Author SHA1 Message Date
7559bac57f
fix(opencode): fix memory-inject race condition, empty-memory ban, add turn limit
Three critical fixes to the iai-mcp-memory-inject.js plugin:

- Race condition: inflight is now a Map<sessionID, Promise> so concurrent
  callers (warm-on-create event + first transform hook) await the same
  fetch instead of getting empty string. First turn now gets memory.
- Empty-memory ban: fetchMemory returns {ok, text} tuple. HTTP 200 with
  empty body is memoized as valid (new user, minimal mode). Only actual
  network errors count against the retry budget.
- Turn-limited injection: new INJECT_MAX_TURNS (default 3) stops injecting
  after N turns. Memory was already in system prompt; the model has seen
  it. Controls per-turn token cost that was 50x the old approach.

Also: README now documents memory-inject.js (not session-init), and
session-init.js is marked @deprecated.
2026-06-03 16:47:55 +02:00
4ba8e3fc19
Document SDK message tradeoff in README 2026-05-27 16:59:11 +02:00
31a69186a3
Add iai-mcp-session-init plugin for automatic memory loading in OpenCode 2026-05-26 09:48:46 +02:00
8116a5643f
feat: ship OpenCode capture plugin in deploy/opencode/ 2026-05-22 10:03:16 +02:00
01e5903035
docs: update README for Linux support, Qdrant backend, and portable systemd unit 2026-05-12 16:58:32 +02:00
Areg Noya
739ff9dc27 Update README
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: XNLLLLH <XNLLLLH@users.noreply.github.com>
2026-05-10 01:00:04 -07:00
Areg Noya
9f678bfe4d Update README
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: XNLLLLH <XNLLLLH@users.noreply.github.com>
2026-05-10 00:50:31 -07:00
Areg Noya
3094a2b81f Update README
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: XNLLLLH <XNLLLLH@users.noreply.github.com>
2026-05-10 00:48:47 -07:00
Areg Noya
5e2c9fa9ca Update README badges
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: XNLLLLH <XNLLLLH@users.noreply.github.com>
2026-05-10 00:37:00 -07:00
Areg Noya
2ecdc10a5e Improve README structure: add badges, TOC, reorder sections
Move Quick start above Usage/How it works for faster onboarding.
Move About the name to end. Add license, platform, and benchmark
badges. Add table of contents for navigation.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: XNLLLLH <XNLLLLH@users.noreply.github.com>
2026-05-10 00:27:06 -07:00
Areg Noya
f6b876fbe7 Initial release: iai-mcp v0.1.0
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: XNLLLLH <XNLLLLH@users.noreply.github.com>
2026-05-06 01:04:47 -07:00