fix: show 'Resuming agent...' during loading when resuming

Set isResumingSession early in the init flow so the loading message
correctly shows 'Resuming agent...' instead of 'Creating agent...'

🤖 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta <noreply@letta.com>
This commit is contained in:
cpacker
2025-12-03 16:52:29 -08:00
parent fa4f8abec5
commit 8c6ed19719

View File

@@ -479,6 +479,9 @@ async function main() {
}
}
// Set resuming state early so loading messages are accurate
setIsResumingSession(!!resumingAgentId);
// If resuming an existing agent, load the exact tools attached to it
// Otherwise, load a full toolset based on model/toolset preference
if (resumingAgentId && !toolset) {