OpenRailAssociation / OpenRailAssociation/osrd

TOD: dragging a train make the tod close

Open
#17,510 3 comments 0 reactions 1 assignee View on GitHub

@Caracol3 is already working on this.

Since Sep 9, 2026.

area:front kind:bug module:operational-studies severity:critical
Dominant language
TypeScript
Stars
660
Forks
87
Avg merge
3d 4h
Merged PRs (30d)
269

Description

What happened?

When we drag a train in the TOD, sometimes (probably when the pathfinding is recomputed), the TOD gets closed when the train's path is used for the projection.

This is not a wanted behavior. Regardless of the changes that the drag and drop will introduce, we are just changing an input (the local_track_name of the new path_item) so we know this PR will still be in the manchette so there is no reason to close the TOD (even if the pathfinding fails)

What did you expect to happen?

The TOD should remain always open after a drag and drop in it. (only exception would be when we "release" a requested track constraint when drag&dropping but this is not an available feature for now) (hi @Tguisnet)

How can we reproduce it (as minimally and precisely as possible)?

Drag&drop an occupation of the projected train in the TOD

On which environments the bug occurs?

Recette (SNCF)

On which browser the bug occurs?

Firefox

OSRD version (top right corner Account button > Informations)

c38afa2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.