Skip to content

Conversation

ryanthemanuel
Copy link
Collaborator

@ryanthemanuel ryanthemanuel commented Oct 4, 2025

Additional details

This PR renames excludeFromAI to placeholders as the option to cy.prompt that provides key/value pairs that will not be sent to AI and will allow caching to work properly by not including the value in the cached text.

Steps to test

How has the user experience changed?

PR Tasks


Note

Rename PromptOptions.excludeFromAI to placeholders, bump cy-prompt session mount version to 2 and drop bundle mount-version header, and update CircleCI branch filters.

  • Types:
    • Rename Cypress.PromptOptions field from excludeFromAI to placeholders in cli/types/cypress.d.ts.
  • Server (cy-prompt):
    • Update session payload cyPromptMountVersion from 1 to 2 in post_cy_prompt_session and tests.
    • Remove x-cypress-cy-prompt-mount-version header from bundle fetch in get_cy_prompt_bundle and tests.
  • CI:
    • Update CircleCI branch filters and artifact persistence checks from feat/cy-prompt to ryanm/fix/rename-exclude-from-ai in .circleci/src/pipeline/@pipeline.yml and .circleci/src/pipeline/workflows/@main.yml.

Written by Cursor Bugbot for commit 9e3ede9. This will update automatically on new commits. Configure here.

ryanthemanuel and others added 30 commits May 20, 2025 16:37
* feat: cy prompt infrastructure

* refactor and add tests

* refactor

* rename experimental config

* prompt

* fix test

* Update cy-prompt-development.md

* Update cy-prompt-development.md

* PR comments

* Update packages/server/lib/cloud/api/cy-prompt/get_cy_prompt_bundle.ts

Co-authored-by: Copilot <[email protected]>

* PR comments

---------

Co-authored-by: Copilot <[email protected]>
* chore: add cdp connection to cy prompt

* minor fix

* fix type build

* try to fix build

* Update packages/server/lib/browsers/browser-cri-client.ts

Co-authored-by: Bill Glesias <[email protected]>

* Update packages/server/lib/browsers/browser-cri-client.ts

Co-authored-by: Bill Glesias <[email protected]>

* do not support prompt in firefox or webkit

* rework timing of lifecycle

* refactor

* fix tests

* troubleshooting

* troubleshooting

* fix tests

* additional troubleshooting

* additional troubleshooting

* additional troubleshooting

* attempt to fix build

* add back

* debugging

* debugging

* debugging

* debugging

* clean up

* fix unit tests

* rework

---------

Co-authored-by: Bill Glesias <[email protected]>
…#31803)

* chore: add promptBackend as an additional Cypress-attached function

* Update packages/app/src/runner/event-manager.ts

* update types

* fix types

* fix spacing

* refactor

* additional refactor

* fix type build

* fix build

* refactor

* reword messages

* fix

* debugging

* undo debugging

* PR comment

* fix tests

* fix tests

* fix tests

* fix test
* chore: add watcher for cy-prompt development

* test caching

* fix types
…31835)

* internal: (cy.prompt) handle errors better in the command definition

* internal: (cy.prompt) add timeout and handle loading errors more cleanly

* add process environment variable

* clean up test

* update JSDoc
* chore: handle errors

* Fix ts, add test

* Fix error title

* Fix ts

* Fix ts
* share error utils with cloud

* additional rework

* Fix command, add isOpenMode

* Add / fix test

* fix ts

---------

Co-authored-by: Ryan Manuel <[email protected]>
…31904)

* chore: (cy.prompt) add infrastructure to support a Get Code modal

* fix tests

* fix code paths

* Update eject button styles

* handle errors

* update types

* Update packages/server/lib/socket-base.ts

* Fix cy test

* update readme

---------

Co-authored-by: estrada9166 <[email protected]>
* chore: (cy.prompt) refactor getTestsState to take a runnable id

* fix tests

* minor tweak
…31922)

* chore: (cy.prompt) add manifest for all of the cloud delivered files

* fix tests and remove environment variables

* update strategy

* fix build

* rework

* require manifest

* clean up

* refactor

* refactor

* Update packages/server/lib/cloud/cy-prompt/CyPromptLifecycleManager.ts

Co-authored-by: Matt Schile <[email protected]>

* fix test

---------

Co-authored-by: Matt Schile <[email protected]>
* feat: add cy prompt more info needed modal

* Reset promptStore

* additional things exposed for more info

* rework

* fix tests

* fix build

* fix types

* fix types

* Update packages/app/src/runner/event-manager.ts

Co-authored-by: Copilot <[email protected]>

* reefactor

* chore: (cy.prompt) rework the file save lifecycle

* rework types

* add unit tests

---------

Co-authored-by: estrada9166 <[email protected]>
Co-authored-by: Copilot <[email protected]>
…root in the cy.prompt modals (#32011)

* fix: (studio) ensure that we do not attach a vue ref to the react root in the studio panel

* fix test
@ryanthemanuel ryanthemanuel changed the title Ryanm/fix/rename exclude from ai internal: rename excludeFromAI type Oct 4, 2025
cursor[bot]

This comment was marked as outdated.

Copy link

cypress bot commented Oct 4, 2025

cypress    Run #66224

Run Properties:  status check failed Failed #66224  •  git commit 9e3ede91a7: rename to placeholders
Project cypress
Branch Review ryanm/fix/rename-exclude-from-ai
Run status status check failed Failed #66224
Run duration 17m 19s
Commit git commit 9e3ede91a7: rename to placeholders
Committer Ryan Manuel
View all properties for this run ↗︎

Test results
Tests that failed  Failures 1
Tests that were flaky  Flaky 7
Tests that did not run due to a developer annotating a test with .skip  Pending 143
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 6221
View all changes introduced in this branch ↗︎
UI Coverage  0%
  Untested elements 4  
  Tested elements 0  
Accessibility  100%
  Failed rules  0 critical   0 serious   0 moderate   0 minor
  Failed elements 0  

Tests for review

Failed  cypress/e2e/studio/studio.cy.ts • 1 failed test • app-e2e

View Output

Test Artifacts
Cypress Studio > creates a new test from an empty spec Test Replay Screenshots
Flakiness  commands/net_stubbing.cy.ts • 1 flaky test • 5x-driver-firefox

View Output

Test Artifacts
... > stops waiting when an xhr request is canceled
    </td>
  </tr></table>
Flakiness  commands/files.cy.js • 1 flaky test • 5x-driver-firefox

View Output

Test Artifacts
src/cy/commands/files > #readFile > retries to read when ENOENT
    </td>
  </tr></table>
Flakiness  issues/28527.cy.ts • 1 flaky test • 5x-driver-firefox

View Output

Test Artifacts
issue 28527 > fails and then retries and verifies about:blank is not displayed Screenshots
Flakiness  top-nav.cy.ts • 1 flaky test • app-e2e

View Output

Test Artifacts
... > with no project id > shows "connect project" button after login if no project id is set Test Replay Screenshots
Flakiness  cypress-origin-communicator.cy.ts • 2 flaky tests • app-e2e

View Output

Test Artifacts
Cypress In Cypress Origin Communicator > primary origin memory leak prevention > cleans up the primaryOriginCommunicator events when navigating away from the /specs to /runs Test Replay Screenshots
Cypress In Cypress Origin Communicator > primary origin memory leak prevention > cleans up the primaryOriginCommunicator events when navigating away from the /specs to /settings Test Replay Screenshots

The first 5 flaky specs are shown, see all 6 specs in Cypress Cloud.

@ryanthemanuel ryanthemanuel self-assigned this Oct 6, 2025
cursor[bot]

This comment was marked as outdated.

@jennifer-shehane jennifer-shehane mentioned this pull request Oct 6, 2025
18 tasks
Copy link
Member

@jennifer-shehane jennifer-shehane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leaning more towards 'excludedValues'

@ryanthemanuel
Copy link
Collaborator Author

Overriding to merge here as the failing test is unrelated and will be fixed separately.

@ryanthemanuel ryanthemanuel merged commit e3f4064 into develop Oct 6, 2025
120 of 129 checks passed
@ryanthemanuel ryanthemanuel deleted the ryanm/fix/rename-exclude-from-ai branch October 6, 2025 21:38
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Oct 7, 2025

Released in 15.4.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v15.4.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Oct 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants