Skip to content

fix: anchor helper session-key match and keep recall on inter-session turns - #71

Merged
capy-ai[bot] merged 2 commits into
capy/skip-subagent-headless-capturefrom
capy/fix-skip-headless-review
Nov 13, 2026
Merged

capy-ai[bot] merged 2 commits into
capy/skip-subagent-headless-capturefrom
capy/fix-skip-headless-review

Conversation

@MaheshtheDev

Copy link
Copy Markdown
Member

Problem: #70 matched helper: and subagent: anywhere in the session key, so user-named keys like agent:main:explicit:helper:notes lost memory. It also skipped recall on exec-approval follow-ups.

Changes

  • The match now runs only on the part after agent:<id>:, mirroring isSubagentSessionKey. helper: is anchored as helper:incognito-.
  • inter_session and internal_system turns skip capture only; recall still runs.
  • Env flags accept yes/on/no/off, and false overrides config.

Verification: tsc clean and build ok. User-named keys went from skipped to captured, real helper and subagent keys are still skipped, and env off now beats config true.

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

MaheshtheDev and others added 2 commits November 12, 2026 00:06
…nerated turns, let env override config

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>
@capy-ai
capy-ai Bot marked this pull request as ready for review November 13, 2026 00:53
@capy-ai
capy-ai Bot merged commit abbbe8d into capy/skip-subagent-headless-capture Nov 13, 2026
3 checks passed
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