Skip to content

Commit 9b7a41d

Browse files
committed
fix non agent not tagged
1 parent eedfd12 commit 9b7a41d

4 files changed

Lines changed: 12 additions & 2 deletions

File tree

cli

17.1 MB
Binary file not shown.

cmd/bundle.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,6 @@ Examples:
351351
},
352352
}
353353

354-
// forced poll test - final cli
355354
// runBundleCreate creates a new sealed bundle from selected drafts.
356355
// repoFilter, if set, narrows the draft pool to only prompts that touched that repo.
357356
// Draft numbers shown in the overview always correspond to the (possibly filtered) pool.

internal/sources/claudecode/parser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ func ParseClaudeCodeSession(fileContent, projectName, filePath string) ParsedSes
217217
// Skip auxiliary message types (attachment, file-history-snapshot, etc.)
218218
// that don't represent conversation boundaries.
219219
if next.Type == "system" {
220-
break
220+
continue
221221
}
222222
}
223223

internal/sources/cursor/watcher.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,17 @@ func (s *PromptScanner) saveCompletedTurn(
260260
// Non-agent turn or no events: use best-candidate attribution.
261261
if len(candidates) == 1 {
262262
proj = &candidates[0]
263+
} else if len(candidates) > 1 {
264+
// Multi-repo workspace: pick the first registered candidate as the
265+
// primary project so the draft has a non-empty project_name and is
266+
// visible in `pcr bundle`. Tag all candidate IDs in touched_project_ids
267+
// so the draft also surfaces when browsing from any sub-repo.
268+
proj = &candidates[0]
269+
for _, c := range candidates {
270+
if c.ProjectID != "" {
271+
touchedIDs = append(touchedIDs, c.ProjectID)
272+
}
273+
}
263274
} else {
264275
proj = &projects.Project{}
265276
}

0 commit comments

Comments
 (0)