Skip to content

Commit a7efb22

Browse files
lulu0119YoukiAkito
authored andcommitted
chore(server): remove unused CLIENT_URL from env template (moeru-ai#1884)
1 parent 423be56 commit a7efb22

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

apps/server/.env

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ AUTH_GITHUB_CLIENT_SECRET=""
1212
STRIPE_SECRET_KEY=""
1313
STRIPE_WEBHOOK_SECRET=""
1414

15-
CLIENT_URL=""
1615
API_SERVER_URL=""
1716

1817
# Comma-separated browser origins for CORS (/api/*) and Stripe return URLs.

packages/stage-pages/src/pages/settings/modules/memory-long-term.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ function formatDate(ts: number): string {
7979
</p>
8080
</div>
8181

82-
<!-- Recent memories -->
83-
<div v-if="recentMemories.length > 0" flex="~ col gap-2">
82+
<!-- Recent memories (only when a character is active) -->
83+
<div v-if="activeCharacterId && recentMemories.length > 0" flex="~ col gap-2">
8484
<p text="xs neutral-400 font-medium uppercase tracking-wide px-1">
8585
{{ t('settings.pages.memory.recentMemories') }}
8686
</p>

packages/stage-ui/src/database/repos/alaya/summarizer.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,10 @@ export function summariseMemories(
125125
compositeScore(a, 1.0, scoreOpts) - compositeScore(b, 1.0, scoreOpts),
126126
)
127127

128-
// Preserve only the top `maxEntries`
128+
// Preserve only the top `maxEntries`, then restore chronological
129+
// order so consumers (e.g. recent-memory slices) see newest-first.
129130
working = working.slice(working.length - maxEntries)
131+
working.sort((a, b) => a.createdAt - b.createdAt)
130132
}
131133

132134
return { entries: working, modified }

0 commit comments

Comments
 (0)