fix(chat): replace a second stuck transcript reload, and close the cleanup pool in its test by waleedlatif1 · Pull Request #8990 · simstudioai/sim · GitHub
Skip to content

fix(chat): replace a second stuck transcript reload, and close the cleanup pool in its test - #8990

Merged
waleedlatif1 merged 1 commit into
stagingfrom
fix/v0921-review-followups
Oct 13, 2026
Merged

waleedlatif1 merged 1 commit into
stagingfrom
fix/v0921-review-followups

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Chat-detail reload coalescer: a reload in flight past its hold is cancelled and replaced, and the replacement holds twice as long (30s, 60s, 120s, …). Previously a chain cancelled a stuck read at most once and then joined whatever replaced it, so a second hung read blocked every later reload until the connection closed. Doubling keeps the fix for slow-but-progressing first loads (they are never restarted forever) while a hung read is always replaced
  • Chat cleanup integration test now also ends the dbFor('cleanup') pool that collectChatFiles reads through, matching the other cleanup-pool suites
  • Follow-ups to review threads on the v0.9.21 release PR

Type of Change

  • Bug fix

Testing

  • handle-resource-event.test.ts: 21/21 pass. New "still replaces a second stuck read … once its doubled hold passes" (cached and first-load) fails on the current staging code (2 failed) and passes with the fix; the existing slow-replacement test still guards against restarting a slow load every hold
  • biome on changed files; integration suite, type-check, and audits run in CI

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

…eanup pool in its test

A chain of chat-detail reloads cancelled a stuck read at most once and then joined
whatever replaced it, so a second hung read held every later reload until the
connection closed. Each reload past its hold is now cancelled and replaced, and
the replacement holds twice as long, so a hung read is always replaced while a
slow one is eventually left to finish.

The chat cleanup integration test now also ends the cleanup database pool that
collectChatFiles reads through.
@vercel

vercel Bot commented Oct 13, 2026

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 3 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

@waleedlatif1
waleedlatif1 merged commit 5bfd88d into staging Oct 13, 2026
42 checks passed
@waleedlatif1
waleedlatif1 deleted the fix/v0921-review-followups branch October 13, 2026 21:36

This branch was previously deployed

1 inactive deployment
Preview — 0cbada34 Deployed Oct 13, 2026 by vercel[bot]
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