Skip to content

basecamp2 - Resume chat session from server with a cache#5088

Merged
zanesq merged 1 commit intobasecamp2from
zane/basecamp2-resume-from-server
Oct 9, 2025
Merged

basecamp2 - Resume chat session from server with a cache#5088
zanesq merged 1 commit intobasecamp2from
zane/basecamp2-resume-from-server

Conversation

@zanesq
Copy link
Collaborator

@zanesq zanesq commented Oct 9, 2025

Summary

Added support for resuming chat session from server with a cache. Removed reliance on useAgent in Pair2.

Note: this gets us most of the way there but still some rough edges with race conditions from hub (if a session is loaded while the empty chat is still initializing) and improvements to the initial state before loading the chat session.

@zanesq zanesq requested a review from DOsinga October 9, 2025 02:43
setSessionLoadError(null);

// Set chat to empty session to indicate loading state
// todo: set to null instead and handle that in other places
Copy link
Collaborator Author

@zanesq zanesq Oct 9, 2025

Choose a reason for hiding this comment

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

I originally set chat to null but it started having cascading effects all over the codebase setting the types to ChatType | null so opted for a less disruptive change for now and figured we can come back to it later

@zanesq zanesq marked this pull request as ready for review October 9, 2025 19:26
@zanesq zanesq merged commit 67e9d74 into basecamp2 Oct 9, 2025
5 checks passed
@zanesq zanesq deleted the zane/basecamp2-resume-from-server branch October 9, 2025 19:28
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