Skip to content

fix: iOS snapshot not showing password fields - #29

Merged
thymikee merged 1 commit into
mainfrom
fix/28
Feb 9, 2026
Merged

fix: iOS snapshot not showing password fields#29
thymikee merged 1 commit into
mainfrom
fix/28

Conversation

@thymikee

@thymikee thymikee commented Feb 9, 2026

Copy link
Copy Markdown
Member

Fixes #28

@thymikee
thymikee merged commit 2e86805 into main Feb 9, 2026
4 of 6 checks passed
thymikee added a commit that referenced this pull request Aug 1, 2026
* fix: clear the polynomial-redos class across main

Three sites of the same CodeQL js/polynomial-redos family:

- packages/replay-test session-test-artifacts/-discovery slugs trimmed edge
  dashes with /^-+|-+$/g, which backtracks polynomially on long dash runs
  built from caller-supplied paths (alerts #27/#28). Replaced with a shared
  linear trimEdgeDashes.
- src/replay/target-identity.ts's target-v1 annotation line regex had the
  \s+(.*) ambiguity (the shape flagged as alert #29 on the #1536 copy).
  Anchored the payload group on \S so the split point is unique; the only
  caller matches against trimmed lines, so behavior is unchanged.

Adversarial regression test on the slug path (100k-char dash run,
sub-second); the annotation-regex adversarial case is covered on the #1536
package copy and the frozen replay-compat corpus passes here unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>

* test: make the redos regression fail against the retired regex form

The edge-run input matched the old /^-+|-+$/g in one pass; the quadratic
case is an interior run (each dash restarts a -+$ attempt that fails at the
trailing byte). The slug pipeline collapses runs before trimming, so the
test targets trimEdgeDashes directly and asserts the input comes back
byte-identical.

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: drop the import the test rewrite orphaned

Co-Authored-By: Claude <noreply@anthropic.com>

* test: pin the all-dash fallback identifiers

Artifact slug falls back to 'test', invocation id to 'suite', and a
session-name slug that trims to nothing is omitted without a dangling
separator.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
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.

iOS Snapshot not retrieve the password field

1 participant