Repository navigation
chore: enhance session status indicators in chat hisotry and sessions - #1391
harshil-2096 wants to merge 6 commits into
Conversation
🦋 Changeset detectedLatest commit: 6f5c85e The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
…yncThreadListLastTurnStatus
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 6f5c85e. Configure here.
| return right != null && !Number.isNaN(right.getTime()) ? right : undefined; | ||
| if (right == null || Number.isNaN(right.getTime())) return left; | ||
| return right.getTime() > left.getTime() ? right : left; | ||
| } |
There was a problem hiding this comment.
Helper takes two positional dates
Low Severity
New helper laterActivityAt takes two positional Date | undefined arguments. Same-type positional parameters are easy to swap, and on equal timestamps the function already prefers left. Callers should pass a single options object instead.
Triggered by project rule: TrueForge review rules
Reviewed by Cursor Bugbot for commit 6f5c85e. Configure here.


Summary
Closes AGE-2813 & AGE-2831
Changes
How was this tested?
Checklist
pnpm build,pnpm test,pnpm typecheck,pnpm lint:ci, andpnpm format:checkpass locallypackages/trueforge-sdk,python/trueforge_sdk,.github/fern/openapi/openapi.json,docs/openapi.json) — fork PRs omit SDK regen; maintainers regenerate after merge.env.exampleupdated if configuration or behavior changedNote
Low Risk
UI-only session list indicators and polling with expanded unit tests; no auth, API, or data-model changes.
Overview
Refines how paused and failed sessions appear in chat history vs the agent sessions browser, and keeps activity timestamps in sync so indicators stay accurate.
Paused dots now hide when last activity is older than 48 hours (chat history and agent sessions). Failed sessions in the agent session list show a
circle-exclamation-pointicon instead of a red status dot; chat history rows keep relative age only with no failure chrome.Session list polling is unified to 5s for any row that is running or paused (replacing separate 10s / 60s cadences). Poll merges via
mergePolledSessionRowalso refreshlastActivityAt, and thread-list custom metadata storeslastActivityAtfromsession.updatedAtso a newly paused stale session can show the orange dot again.Bumps
lucide-reactto 1.x and adds an inline GitHub icon because brand icons were removed upstream.Reviewed by Cursor Bugbot for commit 6f5c85e. Bugbot is set up for automated code reviews on this repo. Configure here.