This repository was archived by the owner on Oct 23, 2026. It is now read-only.
Repository navigation
fix(resolution): prevent duplicate org in trace ID resolution - #1289
Merged
Merged
Conversation
Contributor
|
Contributor
Codecov Results 📊❌ Patch coverage is 50.00%. Project has 5493 uncovered lines. Files with missing lines (1)
Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 81.71% 81.71% —%
==========================================
Files 427 427 —
Lines 30036 30038 +2
Branches 19526 19528 +2
==========================================
+ Hits 24544 24545 +1
- Misses 5492 5493 +1
- Partials 2049 2050 +1Generated by Codecov Action |
BYK
approved these changes
Jul 24, 2026
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
looksLikeSlugfunction insrc/lib/hex-id-recovery.tswas incorrectly returningtruefor full target paths (e.g.,org/project/id) because it only checked for alphanumeric characters and dashes, not the presence of slashes.This caused
buildSlugHintto prepend the organization slug to an input that already contained it, resulting in an invalid trace ID with a duplicated organization segment (e.g.,org/org/project/id). This malformed ID then led to aResolutionError.This fix adds an early return to
looksLikeSlugif the input string contains a/character. This ensures that full paths are correctly identified as not being bare slugs, preventing the erroneous prepending of the organization slug and resolving theResolutionError.Fixes CLI-1EF
Comment
@sentry <feedback>on this PR to have Autofix iterate on the changes.