Skip to content

fix: load existing conversations in open visitor chat tabs - #1450

Merged
tannerlinsley merged 1 commit into
taren/visitor-chatfrom
taren/admin-chat-selection-sync
Oct 29, 2026
Merged

tannerlinsley merged 1 commit into
taren/visitor-chatfrom
taren/admin-chat-selection-sync

Conversation

@tannerlinsley

Copy link
Copy Markdown
Member

An already open visitor tab can receive a chat ID from the shared inbox while its panel still shows the first-message prompt. Keep the panel selection in sync when that ID arrives so it loads the conversation.

Targets the visitor-chat branch in #1446.

AI review notes:
Reproduced with the actual admin component and synthetic server functions: open a session without a chat, then update the same tab with an existing chat ID. Before the change it stays on the first-message prompt; with the change it loads the existing message. The repository component matches that tested fixture exactly.
pnpm test and the normal commit hooks passed: type checks, lint, 653 unit tests (5 skipped), 2,270 chat tests, and 20 desktop tests (1 skipped).

@coderabbitai

coderabbitai Bot commented Oct 29, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

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.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 52278c34-c2b6-4d5f-9198-9c15d2939448

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
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@changeset-bot

changeset-bot Bot commented Oct 29, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: fc60742

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
tanstack-com fc60742 Commit Preview URL

Branch Preview URL
Oct 29 2026, 11:51 PM

@tannerlinsley
tannerlinsley merged commit de47516 into taren/visitor-chat Oct 29, 2026
8 checks passed
@tannerlinsley
tannerlinsley deleted the taren/admin-chat-selection-sync branch October 29, 2026 23:59
tannerlinsley added a commit that referenced this pull request Oct 30, 2026
* Protect live presence intake and isolate retention cleanup

* Apply live page eligibility before limiting results

* Add company prioritization tools and Scarf history to live dashboard

* Add active and background company status filters and column

* Add admin-initiated visitor chat with deferred interface assets

* Fix visitor chat Worker startup and background polling

* Include recently left companies in dashboard breakdowns

* Enable visitor chat for production rollout

* Dock admin visitor chats in independent bottom tabs

* Fix chat dock dark mode and show minimized inbox by default

* Reduce duplicate R2 cache refresh writes

* Add one-click visitor chat self-test for admins

* Isolate deferred chat styles from the site layout

* Share TanStack identity and add resource-bound Source OAuth

* ci: apply automated fixes

* Isolate self-test conversations and sync shared admin tabs

* Include existing OAuth tables in the migration test boundary

* fix: load existing conversations in open visitor chat tabs (#1450)

* Keep chat composers focused while sending

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.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.

1 participant