Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/unify-page-title-moon-spinner.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@moonshot-ai/kimi-code": patch
---

web: Unify the running-session page title spinner with the chat MoonSpinner sequence and timing.
4 changes: 2 additions & 2 deletions apps/kimi-web/src/composables/usePageTitle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface UsePageTitleOptions {
export function usePageTitle({ running, showAuthGate }: UsePageTitleOptions): void {
const { t } = useI18n();

const SPINNER_FRAMES = ['', '', '', ''];
const SPINNER_FRAMES = ['🌑', '🌒', '🌓', '🌔', '🌕', '🌖', '🌗', '🌘'];
Comment thread
bowenliang123 marked this conversation as resolved.
const spinnerFrame = ref(0);
let spinnerTimer: ReturnType<typeof setInterval> | null = null;

Expand All @@ -24,7 +24,7 @@ export function usePageTitle({ running, showAuthGate }: UsePageTitleOptions): vo
spinnerFrame.value = 0;
spinnerTimer = setInterval(() => {
spinnerFrame.value = (spinnerFrame.value + 1) % SPINNER_FRAMES.length;
}, 250);
}, 120);
}

function stopSpinner(): void {
Expand Down