Skip to content

fix(agents): keep active and pinned task order stable - #7002

Merged
l0ng-ai merged 2 commits into
mainfrom
fix/agents-stable-task-order
Nov 30, 2026
Merged

l0ng-ai merged 2 commits into
mainfrom
fix/agents-stable-task-order

Conversation

@l0ng-ai

@l0ng-ai l0ng-ai commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Summary

  • Sort active status groups (Needs Input, Failed, Usage Limit, Running, Interrupted, Ready to Review) and active tasks within custom groups by creation time (createdMs, newest first) instead of updatedMs, so concurrent turns and status transitions stop shuffling task positions.
  • Keep Pinned tasks in their pinned order (with drag-and-drop manual overrides preserved) instead of resorting by activity.
  • Keep Archived tasks sorted by updatedMs (newest first) so a just-archived task stays at the top and is easy to recover.
  • Stop bumping updated_ms in ide-agent when only renaming a task or updating per-session MCP/skill/memory overrides.

Test Plan

  • pnpm vitest run src/features/agents/ (57 files, 1115 tests passed)
  • pnpm exec tsc --noEmit (passed)
  • cargo test -p ide-agent --lib -- metadata_edits_do_not_bump_updated_ms rename overrides (17 tests passed)

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

Copy link
Copy Markdown

Thanks for the PR. Before review, please update the description (see CONTRIBUTING.md):

  • Fill in How it was verified: the commands you ran and their results. UI changes need before/after screenshots.

This check reruns when you edit the description.

@arookieofc-ai arookieofc-ai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM — sorting active sections by creation time and archived by last update stops rows from reshuffling on every turn, and dropping the updated_ms bumps from the rename/override setters is what makes that stable. Pinned order now follows the pinned list. Rust and TS tests cover both.

@l0ng-ai
l0ng-ai merged commit 338e1a5 into main Nov 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants