Skip to content

chore: enhance session status indicators in chat hisotry and sessions - #1391

Open
harshil-2096 wants to merge 6 commits into
mainfrom
chore/hv/chat-history-sidebar-dots-feedbacks
Open

harshil-2096 wants to merge 6 commits into
mainfrom
chore/hv/chat-history-sidebar-dots-feedbacks

Conversation

@harshil-2096

@harshil-2096 harshil-2096 commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes AGE-2813 & AGE-2831

Changes

How was this tested?

Checklist

  • I have read the contributing guidelines
  • pnpm build, pnpm test, pnpm typecheck, pnpm lint:ci, and pnpm format:check pass locally
  • Tests added/updated where it makes sense
  • No hand-edits to generated code (packages/trueforge-sdk, python/trueforge_sdk, .github/fern/openapi/openapi.json, docs/openapi.json) — fork PRs omit SDK regen; maintainers regenerate after merge
  • Docs / .env.example updated if configuration or behavior changed

Note

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-point icon 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 mergePolledSessionRow also refresh lastActivityAt, and thread-list custom metadata stores lastActivityAt from session.updatedAt so a newly paused stale session can show the orange dot again.

Bumps lucide-react to 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.

@changeset-bot

changeset-bot Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6f5c85e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@truefoundry/trueforge-ui Patch

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

@veria-ai

veria-ai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

PR overview

No security issues were found in this pull request.

Reviews

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ 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;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

Fix in Cursor Fix in Web

Triggered by project rule: TrueForge review rules

Reviewed by Cursor Bugbot for commit 6f5c85e. Configure here.

This branch has not been deployed

No deployments
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