mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-05-20 23:21:06 +00:00
refactor: Remove init_token handling from admin initialization logic and related tests
This commit is contained in:
@@ -40,7 +40,6 @@ const AUTH_ERROR_CODES = [
|
||||
"provider_not_found",
|
||||
"not_authenticated",
|
||||
"system_already_initialized",
|
||||
"invalid_init_token",
|
||||
] as const;
|
||||
|
||||
export type AuthErrorCode = (typeof AUTH_ERROR_CODES)[number];
|
||||
|
||||
@@ -322,7 +322,7 @@ export function useThreadStream({
|
||||
useEffect(() => {
|
||||
if (
|
||||
optimisticMessages.length > 0 &&
|
||||
thread.messages.length > prevMsgCountRef.current
|
||||
thread.messages.length > prevMsgCountRef.current + 1
|
||||
) {
|
||||
setOptimisticMessages([]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user