Skip to content

Keep the last five opened remote transcripts - #2909

Draft
nortonandreev wants to merge 3 commits into
kcap-2728-tail-openfrom
kcap-2730-transcript-cache
Draft

nortonandreev wants to merge 3 commits into
kcap-2728-tail-openfrom
kcap-2730-transcript-cache

Conversation

@nortonandreev

@nortonandreev nortonandreev commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Closes #2730 — AI-5620

Stacked on #2908.

What & why

Reopening a remote session read its seed again. The app now keeps the projected lines of the last five opened transcripts, up to 2,000 lines each and never view models. A reopen reads only the events recorded since.

Where to look

Kept lines are shown only after the catch-up read succeeds, and only while the account generation and the session's refusal count still match those stamped when the feed started loading. A refusal, a 404 or an account change discards them. If the catch-up reply does not start at the last kept event, for example because older events aged out, the app reads a fresh seed.

Verification

Same guest and runs as #2908. Transcript on screen, upper bound, median of 3 rounds:

main #2908 this branch
First open 5.66 s 1.68 s 1.49 s
Reopen after another session 3.49 s 0.44 s 0.39 s

Kept lines go out only once access is established, and a refusal, a 404 or a change of
account forgets them. Each entry holds projected data, at most 2000 lines, never view models.
A snapshot is bound to the account it was read under, and the catch-up read starts at the
last kept event so a stream whose oldest events aged out falls back to a fresh seed.
The cache stamps each feed with the account generation and the session's refusal count when it
starts loading, and a snapshot is kept only while both still hold.
@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@github-actions

Copy link
Copy Markdown

Qodana for .NET

7 new problems were found

Inspection name Severity Problems
Unused local variable 🔶 Warning 4
Inconsistent synchronization on field 🔶 Warning 1
Access to disposed captured variable 🔶 Warning 1
RoslynAnalyzers Use concrete types when possible for improved performance ◽️ Notice 1

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

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.

1 participant