Skip to content

Current turn virtualization - #117

Closed
juliusmarminge wants to merge 1 commit into
mainfrom
cursor/current-turn-virtualization-a6dc
Closed

juliusmarminge wants to merge 1 commit into
mainfrom
cursor/current-turn-virtualization-a6dc

Conversation

@juliusmarminge

@juliusmarminge juliusmarminge commented Feb 28, 2026 •

Copy link
Copy Markdown
Member

Disable virtualization for the active turn in MessagesTimeline to prevent height calculation issues during streaming.


Open in Web Open in Cursor 

Note

Virtualize completed chat turns and render the current in-progress turn without virtualization in ChatView.MessagesTimeline in ChatView.tsx

Split rows into virtualizedRows and currentTurnRows when isWorking=true, compute currentTurnStartIndex, scope the virtualizer to completed rows, replace the single absolute container with two sections, and centralize per-row JSX in renderRowContent in ChatView.tsx.

📍Where to Start

Start in ChatView.MessagesTimeline within ChatView.tsx, focusing on currentTurnStartIndex, the rowVirtualizer count/estimateSize changes, and the new renderRowContent helper.

Macroscope summarized 87cfb96.

When isWorking, rows belonging to the active turn (from the last user
message onward) are rendered in normal document flow instead of through
the virtualizer. This prevents height estimation mismatches during
streaming that cause layout collisions.

Co-authored-by: Julius Marminge <juliusmarminge@users.noreply.github.com>
@cursor

cursor Bot commented Feb 28, 2026

Copy link
Copy Markdown
Contributor

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@coderabbitai

coderabbitai Bot commented Feb 28, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch cursor/current-turn-virtualization-a6dc

Comment @coderabbitai help to get the list of available commands and usage tips.

TomCohenDev pushed a commit to TomCohenDev/t3code that referenced this pull request Oct 18, 2026
…mall-screens

feat(machine-map): map works on phones and small windows
gmackie pushed a commit to gmackie/t3code that referenced this pull request Nov 13, 2026
…y merge conflicts' (pingdotgg#117) from T3CODE-101-nightly-conflict-sessions into custom-local
yasinuslu added a commit to yasinuslu/t3code that referenced this pull request Nov 13, 2026
bigx333 added a commit to bigx333/t3code that referenced this pull request Nov 24, 2026
…ckaging

Port built-in pstack from scriptedalchemy/main (PRs pingdotgg#8, pingdotgg#12, pingdotgg#20, pingdotgg#25, pingdotgg#26,
pingdotgg#27, pingdotgg#38, pingdotgg#46, pingdotgg#51, pingdotgg#102, pingdotgg#117, pingdotgg#153) onto current main.

- packages/pstack (snapshot 0.15.43-t3code.1), shared/pstack, server pstack
  module and client-runtime providerSkills taken verbatim from the fork.
- Server: PstackPack layer, composer expansion on turn start and steer,
  pstack catalog in server config and live pstackUpdated snapshots,
  orchestrationTargets helpers shared with the MCP service, driverKind
  targets prefer instances advertising the requested model and options,
  orchestrator_capabilities allModels for setup-pstack, and native
  pstack@<marketplace> plugins switched off in Claude and Codex sessions.
- pstackEnabled is on by default; toggle lives in Settings > Labs on web
  and mobile, with i18n for all locales.
- Packaging: CLI build, CLI archive, desktop artifact, WSL tree and desktop
  backend carry the pack and point the server at it.

Adapted to main: no provider cooldowns or inference routes upstream, so
role resolution uses providerConstraints and the retired-route migration
and its tests are dropped; turn start expands only messages that
reference pstack; fork-only linked-delegation driverKind refusal is not
ported because main resolves driverKind remotely.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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