Skip to content

fix: deduplicate exact proxy names - #422

Open
wvyan wants to merge 1 commit into
7Sageer:mainfrom
wvyan:fix/proxy-name-dedup
Open

fix: deduplicate exact proxy names#422
wvyan wants to merge 1 commit into
7Sageer:mainfrom
wvyan:fix/proxy-name-dedup

Conversation

@wvyan

@wvyan wvyan commented Aug 15, 2026

Copy link
Copy Markdown

Summary

Treat only exact proxy-name matches as name conflicts.

Problem

The old substring check made names such as edge-hy2 collide with edge, so a distinct first edge was renamed unnecessarily. Counting substring matches could also reuse a suffix after gaps.

Change

  • Keep structural duplicate filtering unchanged.
  • Use exact occupied names and select the first free numeric suffix.
  • Add regression coverage.

Validation

node:22 … vitest run — 33 files, 223 tests passed.

Compatibility / rollback

Existing exact-name duplicates continue to get deterministic suffixes; only unrelated substring names stop colliding. Revert this commit to roll back.

@vercel

vercel Bot commented Aug 15, 2026

Copy link
Copy Markdown

@wvyan is attempting to deploy a commit to the 7sageer's projects Team on Vercel.

A member of the Team first needs to authorize it.

@wvyan
wvyan marked this pull request as ready for review August 15, 2026 05:16
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