Skip to content

Add diff-file-rules tests, fix terminal drag-drop flake#692

Merged
selfcontained merged 1 commit into
mainfrom
agt_9ceb60e124a0/job-test-enforcer-f30bbc12
Jun 26, 2026
Merged

Add diff-file-rules tests, fix terminal drag-drop flake#692
selfcontained merged 1 commit into
mainfrom
agt_9ceb60e124a0/job-test-enforcer-f30bbc12

Conversation

@selfcontained

Copy link
Copy Markdown
Owner

Summary

  • Add 38 unit tests for diff-file-rules.ts utility functions (shouldExcludePath, looksBinary, countLines, readUntrackedFile) covering lock file exclusion, binary detection boundaries, line counting edge cases, path traversal blocking, size limits, and symlink rejection
  • Fix race condition in terminal drag-drop E2E tests where drag/drop events fired before the terminal WebSocket connected, causing intermittent "Connect to an agent before uploading files" failures under parallel load

Test plan

  • pnpm run check passes
  • pnpm run test passes (1993 server + 180 web tests)
  • pnpm run test:e2e passes (171/171, 12 skipped tmux tests)
  • Drag-drop tests pass under full parallel load (previously flaky)
  • Review agent checked for correctness, flake risk, and scope

🤖 Generated with Claude Code

38 new unit tests for shouldExcludePath, looksBinary, countLines, and
readUntrackedFile covering lock file exclusion, binary detection
boundaries, line counting edge cases, path traversal blocking, size
limits, and symlink rejection.

Fix race condition in terminal-drag-drop E2E tests where drag/drop
events fired before the terminal WebSocket connected, causing
"Connect to an agent before uploading files" errors under parallel
load.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@selfcontained
selfcontained merged commit 696a8b9 into main Jun 26, 2026
1 check passed
@selfcontained
selfcontained deleted the agt_9ceb60e124a0/job-test-enforcer-f30bbc12 branch June 26, 2026 02:28
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