Retain Scroll Position When Switching Between Agent/Chat Tabs

Feature request for product/service

Cursor IDE

Describe the request

Feature Request: Retain Scroll Position When Switching Between Agent/Chat Tabs

Problem Description

Currently, when switching between different agent tabs or chat conversations in Cursor, the scroll position resets to the end of the conversation. This behavior disrupts workflow and forces users to manually scroll back to where they were reading, losing their place in the conversation.

Current Behavior

  • User scrolls up in a chat conversation to read earlier messages
  • User switches to another agent tab to start a new task
  • User returns to the original tab
  • Scroll position is reset to the bottom/end of the conversation

Desired Behavior

The scroll position should be preserved independently for each agent tab or chat conversation. When switching between tabs, each conversation should retain its scroll position from when it was last viewed.

Use Case / Why This Matters

This feature is particularly important for users who need to context-switch while processing information:

  1. Reading Long Conversations: Users often need to scroll through extended chat histories to understand context, review code suggestions, or analyze previous responses.

  2. Multi-Tasking Workflow: While reading and understanding a response in one chat, users frequently need to initiate background work in another agent tab (e.g., running a command, checking documentation, or starting a new analysis).

  3. Information Processing: The ability to switch tabs and return to the exact reading position eliminates friction and cognitive overhead, allowing users to maintain focus on their current task without losing their place.

Proposed Solution

  • Store scroll position per-tab/per-conversation
  • Restore scroll position when a tab becomes active
  • Maintain scroll position in browser session storage or local state
  • Optionally: Add a setting to enable/disable this behavior (default: enabled)

Additional Context

This issue occurs in both:

  • The main chat view when switching between agent tabs
  • The agent detail view when switching between conversations

Suggested Implementation

Consider storing scroll position in:

  • Session storage (keyed by conversation/agent ID)
  • Or maintain in-memory state when switching between tabs
  • Restore on tab activation/focus

Thank you for considering this feature request. This would significantly improve the user experience for developers who rely on Cursor for their daily workflow.

2 Likes

And yes, I did use Cursor to make this request, as it is exceedingly useful to take an idea and turn this into something the Cursor team could likely use Cursor to build this out.

Thanks!

Sam, @samotage