docs(agent-task/capi): add TODO note for dropping local ID generation

Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
Babak K. Shandiz 2025-09-19 14:30:29 +01:00
parent a108b4ee95
commit 2fe60d9105
No known key found for this signature in database
GPG key ID: 9472CAEFF56C742E

View file

@ -339,6 +339,8 @@ func (c *CAPIClient) hydrateSessionPullRequestsAndUsers(sessions []session) ([]*
for _, session := range sessions {
if session.ResourceType == "pull" {
prNodeID := session.ResourceGlobalID
// TODO: probably this can be dropped since the API should always
// keep returning the resource global ID.
if session.ResourceGlobalID == "" {
prNodeID = generatePullRequestNodeID(int64(session.RepoID), session.ResourceID)
}