Skip to content

feat(repo): add repo identity scope for list, search, and export#59

Merged
samzong merged 1 commit into
mainfrom
feat/repo-identity
Jun 29, 2026
Merged

feat(repo): add repo identity scope for list, search, and export#59
samzong merged 1 commit into
mainfrom
feat/repo-identity

Conversation

@samzong

@samzong samzong commented Jun 29, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add session repo identity columns and schema v9 for persisted sessions.
  • Resolve GitHub origin identity during sync, backfill existing rows, and preserve known repo identity when same-directory git resolution later fails.
  • Add repo-aware filters for search, session list, and export, including non-path --project values and JSON/export/import fields.

Verification

  • git diff HEAD~1..HEAD --check
  • cargo test sync::tests::full_sync_treats_new_session_metadata_as_changed
  • make check

Pre-ship

  • Round 1 fixed one MUST-FIX: sync no longer clears existing repo identity when current git resolution fails for the same directory.
  • Round 2 had no remaining MUST-FIX findings.

@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: e40eb6d764

ℹ️ 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/db/store.rs
Add nullable repo_remote/repo_slug/repo_name fields (schema v9), derive
identity during sync from git origin, and filter sessions across sibling
worktrees via --repo and non-path --project values.

Considered and deferred:
- TUI repo identity grouping (CLI scope is complete; follow-up tracked locally)

Signed-off-by: samzong <samzong.lu@gmail.com>
@samzong samzong force-pushed the feat/repo-identity branch from e40eb6d to 2c2c5e7 Compare June 29, 2026 11:56
@samzong

samzong commented Jun 29, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 2c2c5e762c

ℹ️ 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".

@samzong samzong merged commit 3b7c128 into main Jun 29, 2026
1 check passed
@samzong samzong deleted the feat/repo-identity branch June 29, 2026 14:18
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