Skip to content

Clean room cleanup and resume chat in same window#5083

Merged
zanesq merged 9 commits intobasecamp2from
zane/basecamp2-chatsamewindow
Oct 8, 2025
Merged

Clean room cleanup and resume chat in same window#5083
zanesq merged 9 commits intobasecamp2from
zane/basecamp2-chatsamewindow

Conversation

@zanesq
Copy link
Collaborator

@zanesq zanesq commented Oct 8, 2025

Summary

  • fixed a couple backwards compatibility changes that were breaking loading a session with tool calls and message conversion for compaction - fixed the failing tests also (goose helped me)
  • added flag conditional resume chat session in current window from hub only so we can test that path easier, had some related changes in useAgent but seems to work ok the session loads at least
  • turned the flag to false for merging to main
  • verified chat and summarization is working like it was with flag off

if (chat?.messages) {
setMessages(chat.messages);
}
}, [chat?.messages, chat?.sessionId]);
Copy link
Collaborator

Choose a reason for hiding this comment

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

this seems good for now, but needs further refactoring I think. I think we should just get rid of useAgent and load the session here from the server - we can add a caching layer to make it look smooth

toolCallData?.status === 'success'
? (toolCallData.value as { name: string; arguments: Record<string, unknown> })
: (toolCallData as { name: string; arguments: Record<string, unknown> });

Copy link
Collaborator

Choose a reason for hiding this comment

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

I can see that we need this, but does this work with the old setup? looks vaguely scary

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, agreed verified it fixes the issue with the old setup

@zanesq zanesq marked this pull request as ready for review October 8, 2025 23:10
@zanesq zanesq merged commit 06231fb into basecamp2 Oct 8, 2025
4 checks passed
@zanesq zanesq deleted the zane/basecamp2-chatsamewindow branch October 8, 2025 23:10
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.

2 participants