Skip to content

[Bug]: Deleting a project group can leave removed contained projects as stale sidebar rows until restart #7020

Description

@kenfdev

Operating system

macOS

Orca version

1.4.113

Details

When deleting a Project Group and selecting “Remove contained projects,” the contained projects can remain visible in the sidebar after the delete completes. The rows appear stale/unusable. Restarting Orca removes them.

Expected:
Contained projects selected for removal disappear from the sidebar immediately after group deletion completes.

Actual:
The group disappears, but some contained project rows can remain in the sidebar until app restart. Even thought you checked to remove the projects included inside.

Notes:
This looks like a renderer state/refetch race. Group deletion emits repos:changed, then each contained project removal emits repos:changed. The renderer handles these by starting unsequenced fetches. A stale fetch from the group-delete event can overwrite the local removeProject() cleanup and reintroduce projects in memory, even though persistence has already removed them. Restart fixes it because startup reloads the final persisted state.

Metadata

Metadata

Assignees

Labels

P1High priority: bug or day-to-day user frustrationbugSomething isn't workingos:macosIssues affecting macOSsize/sSmall PR (≤150 added lines, ≤10 files)

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions