Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions apps/web/src/components/SidebarConnor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1645,6 +1645,7 @@ export default function SidebarConnor() {
label:
isWorktree && group.branch ? `New thread on ${group.branch}` : "New thread here",
},
{ id: "mark-unread", label: "Mark unread" },
...(group.worktreePath
? [{ id: "copy-path", label: "Copy path", icon: "copy" }]
: []),
Expand Down Expand Up @@ -1674,6 +1675,22 @@ export default function SidebarConnor() {
case "new-thread":
handleNewThreadInGroup(group);
return;
case "mark-unread": {
// Unread the last-read thread; the card's indicator logic picks
// it up and shows the group as unread.
const target = resolveGroupNavigationThread(
group,
worktreeLastThreadKeyByKey,
threadLastVisitedAtById,
);
if (target) {
markThreadUnread(
scopedThreadKey(scopeThreadRef(target.environmentId, target.id)),
target.latestTurn?.completedAt,
);
}
return;
}
case "copy-path":
if (group.worktreePath) {
copyPathToClipboard(group.worktreePath, { path: group.worktreePath });
Expand Down Expand Up @@ -1732,8 +1749,11 @@ export default function SidebarConnor() {
copyPathToClipboard,
deleteThread,
handleNewThreadInGroup,
markThreadUnread,
setWorktreeName,
startWorktreeRename,
threadLastVisitedAtById,
worktreeLastThreadKeyByKey,
worktreeNameByKey,
],
);
Expand Down
Loading