Skip to content

Refactor recording pipeline and harden DevTools adapter#5

Merged
vriesd merged 2 commits intomainfrom
refactor/recording-pipeline
Feb 22, 2026
Merged

Refactor recording pipeline and harden DevTools adapter#5
vriesd merged 2 commits intomainfrom
refactor/recording-pipeline

Conversation

@vriesd
Copy link
Contributor

@vriesd vriesd commented Feb 22, 2026

Summary

  • Restructured recording pipeline (phases 1-3): replaced jsonl-transform and selector-normalize with DevTools recording adapter and locator confidence scoring
  • Fixed false-positive locator confidence penalties on text content resembling chain methods
  • Fixed escapeSingleQuotes to handle pre-existing backslashes
  • Added dblclick and hover step type support (schema, executor, DevTools adapter)
  • Removed dead selectorPolicy option (accepted but never used)
  • Deduplicated slugify between recorder.ts and record-service.ts
  • Applied normalizeFirstNavigate in --from-file import path with baseUrl extraction
  • Inlined runCodegenInternal into runCodegen
  • Improved ARIA selector parsing for extra attributes and multi-segment shadow DOM selectors
  • Added runRecordFromFile test coverage (5 tests)

Test plan

  • 564 tests passing (up from 553, +11 new tests)
  • Zero TypeScript errors in modified files
  • npx tsc --noEmit clean for all touched files
  • Verify --from-file import normalizes navigate URLs to relative paths
  • Verify doubleClick and hover DevTools steps convert and play back correctly

🤖 Generated with Claude Code

Restructure the recording pipeline (phases 1-3) and apply post-review
improvements: fix false-positive locator confidence penalties, add
dblclick/hover support, remove dead selectorPolicy code, deduplicate
slugify, normalize first-navigate in DevTools imports, improve ARIA
selector parsing for extra attributes and shadow DOM, and add
runRecordFromFile test coverage. 564 tests passing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vriesd vriesd force-pushed the refactor/recording-pipeline branch from 0ec9316 to 35b3d7c Compare February 22, 2026 01:19
@vriesd vriesd merged commit 8699109 into main Feb 22, 2026
13 checks passed
@vriesd vriesd deleted the refactor/recording-pipeline branch February 22, 2026 01:43
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