Skip to content

fix: route Claude session saves to shared repo container#73

Open
MaheshtheDev wants to merge 2 commits into
mainfrom
eng-877-repo-session-capture
Open

fix: route Claude session saves to shared repo container#73
MaheshtheDev wants to merge 2 commits into
mainfrom
eng-877-repo-session-capture

Conversation

@MaheshtheDev

Copy link
Copy Markdown
Member

Write session summaries and manual repo memories to repo_* tags while
keeping legacy session tag reads for backward-compatible recall.

Write session summaries and manual repo memories to repo_* tags while
keeping legacy session tag reads for backward-compatible recall.
@linear-code

linear-code Bot commented Jun 23, 2026

Copy link
Copy Markdown

ENG-877

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@MaheshtheDev MaheshtheDev marked this pull request as ready for review June 23, 2026 03:17

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f97da0dd70

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/summary-hook.js
const baseUrl = getBaseUrl(cwd, projectConfig);
const client = new SupermemoryClient(apiKey, undefined, { baseUrl });
const containerTag = getContainerTag(cwd);
const containerTag = getRepoContainerTag(cwd);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Include full repo identity before routing autosaves

When repoContainerTag is not configured, getRepoContainerTag() derives the tag from only the repository basename (for example both github.com/acme/api.git and github.com/personal/api.git become repo_api). Routing automatic session summaries through that tag means unrelated repos or forks with the same name under the same Supermemory account will mix recalled context and saved session data; the previous autosave path used a hashed project path and did not have this collision. Consider including the remote owner/full URL or another stable hash in the default repo tag.

Useful? React with 👍 / 👎.

@ved015 ved015 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MaheshtheDev i dont think we need to push cjs files rest lgtm

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.

3 participants