Skip to content

[Cherry-pick] Cherry-pick to release-v0.180.0 - #1114

Merged
truefoundry-saas merged 1 commit into
release-v0.180.0from
cherry-pick/9d852325-2797-4fb0-b2b1-65ad222c7784/release-v0.180.0
Oct 21, 2026
Merged

truefoundry-saas merged 1 commit into
release-v0.180.0from
cherry-pick/9d852325-2797-4fb0-b2b1-65ad222c7784/release-v0.180.0

Conversation

@truefoundry-saas

@truefoundry-saas truefoundry-saas commented Oct 21, 2026 •

Copy link
Copy Markdown

Automated cherry-pick for release request 9d852325-2797-4fb0-b2b1-65ad222c7784.

Source PRs (merged to main):

Do not merge manually — this PR is merged automatically when the release request is approved. If you do merge it yourself, use "Sync status" on the request so it stops showing as pending.


Note

Medium Risk
Changes session hydration, tip resolution, and load/send concurrency in the chat hook; wrong ordering could drop messages or mis-resume turns, but behavior is covered by new tests.

Overview
Improves session reload UX in @truefoundry/trueforge-assistant-ui-runtime by painting history from the listEvents window before getTurn confirms the open tip, and clearing isLoading on that intermediate progress snapshot.

Snapshot building attaches the open tip from turn.created early (pending user + fold), fires an extra onProgress pass, drops the listTurns({ limit: 1 }) fallback for tip detection, and commits tips that finished between listEvents and getTurn when turn.done is not yet in the page.

Hook load/send races use a sendEpoch so a late load cannot overwrite a message the user sent after paint, and failed sends before the message is applied no longer tear down the painted open tip.

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

* bugfix: fix session events api calls in chat page for better ux

* feat: enhance session event handling to retain user messages for tips that finish before confirmation

* fix: retain in-flight loads and improve message handling during send failures in session events
@changeset-bot

changeset-bot Bot commented Oct 21, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0fe51f0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@truefoundry/trueforge-assistant-ui-runtime Patch
@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 0fe51f0. Configure here.

Comment thread packages/assistant-ui-runtime/src/convertTurnMessages.ts
@truefoundry-saas
truefoundry-saas merged commit 5d9b938 into release-v0.180.0 Oct 21, 2026
12 checks passed
@truefoundry-saas
truefoundry-saas deleted the cherry-pick/9d852325-2797-4fb0-b2b1-65ad222c7784/release-v0.180.0 branch October 21, 2026 12:04
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