Skip to content

fix: scope opening-prompt dedupe to backend and account - #127

Merged
capy-ai[bot] merged 1 commit into
capy/skip-supermemory-for-subagentsfrom
capy/review-followups
Nov 13, 2026
Merged

capy-ai[bot] merged 1 commit into
capy/skip-supermemory-for-subagentsfrom
capy/review-followups

Conversation

@MaheshtheDev

Copy link
Copy Markdown
Member

Problem: Opening-prompt dedupe was keyed on container + prompt only, so it crossed API keys and backends and survived logout. This is the same issue the Capy review found on claude-supermemory#160.

Changes

  • The key is a hash of the backend+credential scope + container + prompt, shared with the recall cache (getDedupeScope()). There's no dedupe without a credential.
  • logout deletes opening-prompts.json. The file stays 0600.

Verification: on a real opencode serve, key B gets the full prompt, a repeat with key A gets the marker, and logout deletes both indexes. typecheck is clean, bun test 48/48, build ok.

Stacked on #125; merge this into that branch.

… logout

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot marked this pull request as ready for review November 13, 2026 08:50
@capy-ai
capy-ai Bot merged commit 01c3233 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