Skip to content

fix: forward single-edit jump wipe + backup same-second overwrite - #32

Draft
cursor[bot] wants to merge 2 commits into
masterfrom
cursor/critical-bug-management-3914
Draft

fix: forward single-edit jump wipe + backup same-second overwrite#32
cursor[bot] wants to merge 2 commits into
masterfrom
cursor/critical-bug-management-3914

Conversation

@cursor

@cursor cursor Bot commented Sep 5, 2026

Copy link
Copy Markdown

Summary

Two high-severity correctness fixes from the critical-bug audit:

  1. Forward single-rule edit wiped jump targetsPUT /api/v1/forward/{id} treated an omitted remote_target as clear-when-existing. The classic edit UI only sends host/ports/whitelist, so any edit of a jump rule permanently fell back to agent localhost.
  2. Backup same-second artifact overwrite — PG/VM/recordings used second-precision IDs with O_TRUNC / pg_dump --file. Concurrent admin + scheduler (or two admins) in the same second destroyed the other dump while both reported success. Now reserves unique stamps via O_EXCL + seq suffix.

Also drops orphaned test helpers (licenseResetForTest, classicAppJS) that already broke package compile after license cleanup.

Test plan

  • go test -count=1 -run 'TestForwardEdit|TestUniqueBackupStamp|TestOpenExclusiveBackupFile|TestBackupKindOfAcceptsStampSuffix|TestForwardRules' ./cmd/server/
  • go build ./cmd/server ./cmd/agent
Open in Web View Automation 

cursoragent and others added 2 commits September 5, 2026 11:10
…_target

The classic edit UI only sends host/ports/whitelist. updateRule treated a
missing remote_target as clear-when-existing, so any edit of a jump rule
silently fell back to agent localhost.

Co-authored-by: Ethan <sreyun@users.noreply.github.com>
PG/VM/recordings backups used second-precision filenames with O_TRUNC /
pg_dump --file. Concurrent admin + scheduler (or two admins) in the same
second destroyed the other dump while both reported success. Reserve via
O_EXCL + seq suffix; drop orphaned compile-broken test helpers.

Co-authored-by: Ethan <sreyun@users.noreply.github.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.

1 participant