Skip to content

Locked block outbound connections#3229

Draft
emir-karabeg wants to merge 1 commit intostagingfrom
cursor/locked-block-outbound-connections-6872
Draft

Locked block outbound connections#3229
emir-karabeg wants to merge 1 commit intostagingfrom
cursor/locked-block-outbound-connections-6872

Conversation

@emir-karabeg
Copy link
Collaborator

Summary

This PR modifies the block protection logic to allow adding and removing outbound connections from locked blocks. Previously, all connections involving a locked block (both inbound and outbound) were protected. Now, only inbound connections to a locked block are protected, ensuring that a locked block's internal state cannot be altered by external connections, while still allowing its outputs to be freely managed.

Fixes # (issue) - Assuming this is an improvement, not a specific bug fix, but linking to an issue if one exists would be good.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Other: ___________

Testing

The isEdgeProtected function was updated to only consider the target block for protection. This allows operations on outbound connections from locked blocks while maintaining protection for inbound connections.
Reviewers should verify:

  • It is now possible to add new outbound connections from a locked block.
  • It is now possible to remove existing outbound connections from a locked block.
  • It is still not possible to add new inbound connections to a locked block.
  • It is still not possible to remove existing inbound connections to a locked block.
  • Error messages and comments related to block protection have been updated to reflect this change (e.g., "Cannot remove connections to locked blocks" instead of "from locked blocks").
  • tsc and lint checks passed.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Screenshots/Videos


Slack Thread

Open in Cursor Open in Web

- Modified isEdgeProtected to only check target block protection
- Outbound connections (from locked blocks) can now be added/removed
- Inbound connections (to locked blocks) remain protected
- Updated notification messages and comments to reflect the change

Co-authored-by: Emir Karabeg <emir-karabeg@users.noreply.github.com>
@cursor
Copy link

cursor bot commented Feb 16, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@vercel
Copy link

vercel bot commented Feb 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Skipped Skipped Feb 16, 2026 4:58pm

Request Review

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