A simple tool that automatically clicks the "resume the conversation" link when Cursor IDE hits its API rate limits.
This tool is created with the intention of helping developers maintain their workflow efficiency while using Cursor IDE. It is designed to automate a manual action that Cursor explicitly allows (clicking the "resume conversation" link) and does not attempt to bypass or circumvent any actual rate limits or security measures.
We respect Cursor's services and their need for rate limiting. This tool:
- Only automates an action that users are explicitly allowed to perform
- Maintains the same cooldown periods as manual clicking
- Does not attempt to bypass actual API limits or quotas
- Simply reduces the manual interruption of having to click the resume link
The goal is to enhance developer productivity while working within Cursor's intended usage patterns.
When using Cursor's AI features extensively during development, you often hit rate limits after about 25 tool calls. Normally, you'd see a message like this:
Note: By default, we stop the agent after 25 tool calls. You can resume the conversation.
This tool automatically detects this message and clicks the "resume the conversation" link for you, allowing you to maintain focus on your development tasks without manual interruption.
- Auto-click: Automatically clicks the "resume the conversation" link when rate limits appear
- Enhanced DOM targeting: Uses advanced selectors to accurately find rate limit messages in Cursor's interface
- Multi-scenario support: Handles various error scenarios including connection issues and high demand errors
- Anti-spam: 3-second cooldown between clicks to prevent issues
- Auto-stop: Automatically stops after 30 minutes to prevent indefinite running
- Timer reset: Call
click_reset()
in the console to reset the 30-minute timer - Fallback mechanisms: Multiple approaches to ensure compatibility with different Cursor versions
- JavaScript (ES6+): Core scripting language
- XPath: Advanced DOM querying for fallback scenarios
- CSS Selectors: Primary DOM targeting method
- Browser Console API: For debugging and user interaction
The script uses a sophisticated multi-layered approach:
- Primary Detection: Uses CSS selectors to find markdown sections with
data-markdown-raw
attributes containing rate limit messages - Fallback Detection: XPath queries to locate rate limit text patterns in the DOM
- Link Targeting: Specifically targets
span.markdown-link
elements withdata-link
attributes for the resume action - Error Handling: Detects and handles various error scenarios like connection failures and high demand messages
- Timer Management: 30-minute auto-stop with user-controlled reset functionality
Permanent installation:
- Install Custom CSS and JS Loader
- Clone this repo to your home directory
- Add this to your
settings.json
:
"vscode_custom_css.imports": [
"file://${userHome}/cursor-auto-resume/cursor-auto-resume.js"
]
- Restart Cursor with proper permissions to modify itself (your user should own it)
- Activate command "Reload Custom CSS and JS"
- Reload window
Step 5 + 6 must be repeated on each Cursor update.
One time installation:
- In Cursor, click "Help" in the menu bar and select "Toggle Developer Tools"
- Click the "Console" tab
- Copy the entire code from cursor-auto-resume.js
- Paste it into the console and press Enter
- Close DevTools by clicking the X in the corner (optional)
The script will now automatically click the "resume the conversation" link whenever it appears.
- Reset Timer: If you want to reset the 30-minute timer, type
click_reset()
in the browser console - Monitor Activity: The script logs all its actions to the console for debugging purposes
- Manual Stop: The script will automatically stop after 30 minutes, or you can reload the page/window
Yes, the script only runs in your Cursor IDE and only clicks the specific "resume the conversation" link when rate limits are hit. It doesn't modify any core functionality or bypass any security measures.
The script is designed with multiple fallback mechanisms and enhanced DOM targeting to maintain compatibility. As long as Cursor continues to use similar rate limit messages and "resume the conversation" links, the script should continue to work. If Cursor's interface changes, we'll update the tool to maintain compatibility while respecting their service.
Close and reopen Cursor IDE, or refresh the window. The script automatically stops after 30 minutes.
No. This tool only automates clicking the "resume the conversation" link that Cursor explicitly provides. It respects all cooldown periods and doesn't bypass any actual API limits. It simply automates an action that users are already permitted to perform manually.
This is a safety feature to prevent indefinite running. You can reset the timer by calling click_reset()
in the console if needed.
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a pull request. When contributing, please maintain the tool's core principle of respecting Cursor's service while helping developers be more productive.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request