Skip to content

fix: recall cache, argv value flags and bounded opening-prompt dedupe - #126

Merged
capy-ai[bot] merged 5 commits into
capy/skip-supermemory-for-subagentsfrom
capy/fix-skip-headless-review
Nov 13, 2026
Merged

capy-ai[bot] merged 5 commits into
capy/skip-supermemory-for-subagentsfrom
capy/fix-skip-headless-review

Conversation

@MaheshtheDev

Copy link
Copy Markdown
Member

Problem: Review of #125 found that cross-session recall dedupe left new sessions without memories (and a failed search blocked the retry). The argv parser treated --prompt run or --agent run as headless, and opening-prompt dedupe never expired.

Changes

  • RecallQueryCache re-serves the first successful response for 10 minutes, in both V1 and the v2 runtime.
  • Opening-prompt dedupe only applies to prompts of 200+ characters captured in the last 24h.
  • The argv parser skips the values of opencode's value-taking flags, taken from the 1.19.5 yargs definitions.
  • The parent-session lookup times out after 2s and fails open.
  • Env flags accept yes/on/no/off.
  • The README states that OpenCode 2 run isn't detected, and that inherited orchestrator env counts as orchestrated.

Verification (real opencode-ai 1.19.5 and @opencode/cli 2.2.7)

Case Before After
new session, same question 0 searches injected from cache
search 500, then new session 0 searches searched
TUI with --prompt run headless captured
--port 4097 run x / -m p/m run x captured skipped
long opener after 25h marker full
run / subagent / Conductor / VK unchanged unchanged

typecheck clean, bun test 48/48, build ok.

Stacked on #125; merge this into that branch. Verified locally against a mock Supermemory API (no production).

MaheshtheDev and others added 4 commits November 12, 2026 00:06
…edupe after 24h

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…t parent lookups

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…herited orchestrator env

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… and write cache files 0600

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@MaheshtheDev
MaheshtheDev marked this pull request as ready for review November 12, 2026 02:12
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit 191b65b into capy/skip-supermemory-for-subagents Nov 13, 2026
2 checks passed
capy-ai Bot added a commit that referenced this pull request Nov 25, 2026
…s by default (#125)

* feat: skip Supermemory for subagents, headless runs and helper prompts by default

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* Keep container tags unchanged for bare-repo worktrees

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix: recall cache, argv value flags and bounded opening-prompt dedupe (#126)

* Re-serve cached recall for repeat queries and expire opening-prompt dedupe after 24h

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* Skip values of opencode value flags in headless detection and time out parent lookups

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* Accept yes/on/no/off for env flags and document OpenCode 2 run and inherited orchestrator env

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* Scope the recall cache to backend and credential, clear it on logout, and write cache files 0600

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* chore(release): 2.2.0

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

---------

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* Scope opening-prompt dedupe to backend and credential and clear it on logout (#127)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* chore(release): 2.3.0

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

---------

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: Mahesh Sanikommu <mahesh.svmr@gmail.com>
Co-authored-by: MaheshtheDev <38828053+MaheshtheDev@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant