Skip to content

feat(merge): expose optional repo aligned with Core merge --repo - #15

Merged
HarryHeYu merged 1 commit into
mainfrom
feat/merge-repo
Nov 19, 2026
Merged

HarryHeYu merged 1 commit into
mainfrom
feat/merge-repo

Conversation

@HarryHeYu

Copy link
Copy Markdown
Owner

Phase 2: align sessionflow_merge with Core main s additive merge --repo (PR #58). Plugin-only; no Core, Store or Bridge schema change.

Compatibility first: Core v1.5.0 (Plugin v1.3.0 baseline) has NO flag-level capability declaration — integration_info capabilities are just op names and schema_version stays 1 — so version strings cannot be trusted to detect this flag. The tool forwards --repo=<value> safely (array argv, = form, before the -- separator); when an older core rejects it with argparse unrecognized arguments: --repo (exit 2, zero writes), the tool returns an actionable INCOMPATIBLE upgrade hint. The call is NOT merged and repo is never silently dropped. No repo argument -> byte-for-byte old argv.

Covers: spaces / Windows / POSIX / CJK paths, dash-leading value, empty/blank/non-string/over-long/NUL repo, new vs reused WorkThread (core semantics: explicit only for new), repo_warning/repo_source pass-through, old-core rejection, --json before --.

Red: 9 new tests failed pre-fix. Green: 36/36 merge-argv, full suite 139/139. Mutation: dropping the repo flag turns 7 tests red. Real-core SYNTHETIC E2E (isolated HOME + temp db) confirmed repo_source=explicit for a new thread and =existing (repo_root unchanged) when reusing. No real user index or home modified.

Copilot AI balanced review requested due to automatic review settings November 19, 2026 16:24

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@HarryHeYu
HarryHeYu merged commit 37ffe69 into main Nov 19, 2026
6 checks passed
@HarryHeYu
HarryHeYu deleted the feat/merge-repo branch November 19, 2026 16:38
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.

2 participants