Skip to content

feat: record OpenWindow and ResizeWindow events#1161

Draft
allansson wants to merge 1 commit intomainfrom
cursor/record-window-resize-d760
Draft

feat: record OpenWindow and ResizeWindow events#1161
allansson wants to merge 1 commit intomainfrom
cursor/record-window-resize-d760

Conversation

@allansson
Copy link
Copy Markdown
Collaborator

@allansson allansson commented Apr 9, 2026

Description

Adds two new browser recording events:

  • open-window: emitted once when the recording starts, includes initial window dimensions.
  • resize-window: emitted after a resize interaction settles (debounced), includes final window dimensions.

Codegen treats these as no-ops for now.

Demo:

demo_open_and_resize_window.mp4

Recorder browser events list showing open-window and resize-window

How to Test

  • Start the app in recorder mode, begin recording.
  • Confirm an open-window event appears with the current size.
  • Resize the browser window and stop resizing.
  • Confirm exactly one resize-window event is recorded with the final size.

Checklist

  • I have performed a self-review of my code.
  • I have added tests for my changes.
  • I have commented on my code, particularly in hard-to-understand areas.

Related PR(s)/Issue(s)

N/A

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

Co-authored-by: Johan Suleiko Allansson <allansson@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.

2 participants