The open-source app everyone uses to manage agents at work
TypeScript acpxagent-orchestrationagent-skillsagentic-aiai-agentsai-engineeringai-governanceai-toolsautonomous-agentsclaudeclaude-codeclaude-skillscodexhermesllmmcpmulti-agentopenclawproject-managementworkflow-automation
Adjust recent issue sorting to ignore self-comment bumps
Dottae67032433458
diff --git a/ui/src/pages/Inbox.tsx b/ui/src/pages/Inbox.tsxindex 71824adc5b..1ef489d7b2 100644--- a/ui/src/pages/Inbox.tsx+++ b/ui/src/pages/Inbox.tsx@@ -144,10 +144,14 @@ function normalizeTimestamp(value: string | Date | null | undefined): number {}function issueLastActivityTimestamp(issue: Issue): number {- return Math.max(- normalizeTimestamp(issue.updatedAt),- normalizeTimestamp(issue.lastExternalCommentAt),- );+ const lastExternalCommentAt = normalizeTimestamp(issue.lastExternalCommentAt);+ if (lastExternalCommentAt > 0) return lastExternalCommentAt;++ const updatedAt = normalizeTimestamp(issue.updatedAt);+ const myLastTouchAt = normalizeTimestamp(issue.myLastTouchAt);+ if (myLastTouchAt > 0 && updatedAt <= myLastTouchAt) return 0;++ return updatedAt;}function readIssueIdFromRun(run: HeartbeatRun): string | null {@@ -386,7 +390,11 @@ export function Inbox() {[issues, dismissed],);const sortByMostRecentActivity = useCallback(- (a: Issue, b: Issue) => issueLastActivityTimestamp(b) - issueLastActivityTimestamp(a),+ (a: Issue, b: Issue) => {+ const activityDiff = issueLastActivityTimestamp(b) - issueLastActivityTimestamp(a);+ if (activityDiff !== 0) return activityDiff;+ return normalizeTimestamp(b.updatedAt) - normalizeTimestamp(a.updatedAt);+ },[],);