Skip to content

fix: Add load recent sessions button in Agent sessions - #843

Open
harshil-2096 wants to merge 3 commits into
mainfrom
fix/hv/when-i-open-the-session-page-fe-link-with-the-session-id
Open

harshil-2096 wants to merge 3 commits into
mainfrom
fix/hv/when-i-open-the-session-page-fe-link-with-the-session-id

Conversation

@harshil-2096

@harshil-2096 harshil-2096 commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Summary

image image

Closes #

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 filtering and URL share params; no changes to auth, APIs, or persistence.

Overview
Adds a Load recent sessions control when the sessions list is scoped to the narrow, timestamp-pinned window used for deep-linked or opened sessions (fixed s_sts/s_ets, not the rolling “Last 30 days” preset).

SessionsPage detects that pinned range and passes onLoadRecentSessions into AgentSessions, which renders a secondary button above the list. The action resets the filter to the default 30-day window, clears the selected sessionId in share URL state, and refetches the broader list.

Tests cover that the button is hidden on the normal preset, appears for pinned URLs (including after closing details or switching rows), and that clicking it updates list requests and query params as expected.

Reviewed by Cursor Bugbot for commit cd21768. Bugbot is set up for automated code reviews on this repo. Configure here.

@changeset-bot

changeset-bot Bot commented Sep 22, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: cd21768

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

@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 f8023bb. Configure here.

Comment thread packages/trueforge-ui/src/atoms/agent-details/SessionsPage.tsx Outdated
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.

1 participant