Description
Preflight Checklist
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a feature request that matches the one I want to file, without success.
You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.
Describe the bug
Duplicate edges (i.e., arrows) get created in seemingly random places in the diagram. As far as I can notice, these are duplicates of edges I copy-pasted to use elsewhere, which get re-pasted somewhere else with a delay. This only applies to edges. I am confident I haven't accidentally pasted two times.
To Reproduce
Steps to reproduce the behavior:
- Create an edge between two nodes.
- Copy-paste the edge elsewhere (e.g., to attach to additional two nodes).
- Repeat until the duplicates occur.
Or:
- Create an example diagram with nodes and edges.
- Save it and close the app.
- Open the diagram in the app again.
- Repeat until duplicates are scattered across the canvas.
Expected behavior
Only single copy-pasted edge, and not additional duplicate edges.
draw.io version (In the Help->About menu of the draw.io editor):
- draw.io version 29.6.6
Desktop (please complete the following information):
- OS: Windows
Additional context
Nothing I can think of. Would be happy to provide additional things if needed.
Activity
draw-io-triage-bot commentedon Apr 10, 2026
👋 Thank you for opening this issue!
Summary: The user reports that when copy-pasting edges (arrows) between nodes in draw.io desktop v29.6.6 on Windows, duplicate edges appear at seemingly random locations on the canvas, either shortly after pasting or after saving and reopening the diagram.
📝 Additional Information Needed
To help us investigate this more effectively, could you please provide:
We also have some questions:
📋 Bug Report Template
🤖 This is an automated response to help with initial triage. A human maintainer will review this issue. If you've provided all the requested information, no further action is needed - we'll get back to you soon!
Tomas-Bueno-Momcilovic commentedon Apr 10, 2026
Questions:
Note to human maintainers: Consider adding to the system prompt of your Triage Bot to not repeat questions or addressed points.
Tomas-Bueno-Momcilovic commentedon Apr 17, 2026
Another example, after opening the diagram:
alderg commentedon May 7, 2026
Thanks for reporting this. We've been looking into possible causes and have a few leads, but to narrow it down we need some additional information:
Can you share a
.drawiofile that already has the duplicate edges? Even a minimal example would help — we want to inspect the raw XML for clues (e.g. duplicate cell IDs).Are the duplicate edges exact copies of existing edges (same style, label, terminals), or are they disconnected edges that appear at seemingly random coordinates?
Does this happen with a fresh diagram, or only with files that have been edited/saved many times?
Are you using any plugins or custom configuration (Extras → Configuration)?
Does it also reproduce on app.diagrams.net, or only in the desktop app?
If you can reproduce it reliably, enabling the debug console (Help → Toggle Developer Tools) before triggering the issue and checking for any
Duplicate IDwarnings in the console output would also be very helpful.Tomas-Bueno-Momcilovic commentedon Jun 28, 2026
I can reopen the issue if it comes up again.
alderg commentedon Jul 28, 2026
We've reproduced this deterministically and identified the mechanism. It needs a file sync client (OneDrive here) rewriting the file on disk around your edits:
The "delay" you observed matches the file watcher's ~5s polling plus the sync client's latency, and since this duplicates whatever was re-created between the rollback and the echo, copying edges specifically explains why only edges were affected.
Fix: the desktop app now detects when the file on disk was replaced by an older version of itself (a rollback or an echo of a previous save in the current session) and asks explicitly — Overwrite (keep your current version and write it back to disk) or Synchronize (load the older version) — instead of merging silently. This will ship with an upcoming desktop release.
Until then, pausing OneDrive sync while editing (or keeping actively edited diagrams outside a synced folder) avoids the trigger. Thanks for the detailed report — the observation that only copy-pasted edges were affected was the key clue.