You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Delegated child tasks get no rootTask and taskNumber 1 #2031
delegateParentAndOpenChildUnlocked removes the parent from the registry during disposal (around line 3907). It calls createTask for the child afterward (around line 3927). The registry is empty at that point. So rootTask is undefined and taskNumber is 1.
Evidence
A server-state audit of a delegation run showed parent links agree and transcripts parse. Both defects appeared as metadata only. The code path was read but not reproduced at runtime. Confirm with a test before fixing.
Effects
Any consumer of rootTask cannot find the root for a child. Deeper hierarchies (child of child) are the risk.
taskNumber is not unique across a hierarchy.
Proposed fix
Derive both values from the parent when parentTask is set. For example:
Activity