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
6 changes: 5 additions & 1 deletion src/components/JournalList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@
let searchError = $state<string | null>(null);
let searchAbort: AbortController | null = null;

const SEARCH_DEBOUNCE_MS = 200;
// Long enough that a moderate typist (~200ms inter-keystroke
// intervals) doesn't fire one Venice embed per keystroke; short
// enough that a deliberate query feels responsive. Matches the
// other drawer searches.
const SEARCH_DEBOUNCE_MS = 400;
// Match the journal_search tool's max so the sidebar surfaces every
// day the assistant could reach. Aggregated by date downstream so
// the actual row count in the drawer is the unique-date count.
Expand Down
9 changes: 5 additions & 4 deletions src/components/MemoryList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@
}
const { onSelect }: Props = $props();

// Same window the old in-modal search used. Long enough that the
// semantic-search request fires once at the end of a typing burst,
// short enough that intent-to-result still feels responsive.
const SEARCH_DEBOUNCE_MS = 200;
// Long enough that a moderate typist (~200ms inter-keystroke
// intervals) doesn't fire one Venice embed per keystroke; short
// enough that a deliberate query feels responsive. Matches the
// other drawer searches.
const SEARCH_DEBOUNCE_MS = 400;

let debounceTimer: ReturnType<typeof setTimeout> | null = null;

Expand Down
6 changes: 5 additions & 1 deletion src/components/RecipeList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@
let searchError = $state<string | null>(null);
let searchAbort: AbortController | null = null;

const SEARCH_DEBOUNCE_MS = 200;
// Long enough that a moderate typist (~200ms inter-keystroke
// intervals) doesn't fire one Venice embed per keystroke; short
// enough that a deliberate query feels responsive. Matches the
// other drawer searches.
const SEARCH_DEBOUNCE_MS = 400;
const RECIPE_SEARCH_LIMIT = 50;

$effect(() => {
Expand Down
6 changes: 5 additions & 1 deletion src/components/WikiList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
}
const { onSelect }: Props = $props();

const SEARCH_DEBOUNCE_MS = 200;
// Long enough that a moderate typist (~200ms inter-keystroke
// intervals) doesn't fire one Venice embed per keystroke; short
// enough that a deliberate query feels responsive. Matches the
// other drawer searches.
const SEARCH_DEBOUNCE_MS = 400;

let debounceTimer: ReturnType<typeof setTimeout> | null = null;

Expand Down
6 changes: 5 additions & 1 deletion src/screens/Chat.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3835,7 +3835,11 @@
/** AbortController for the in-flight Venice embed call — newer queries cancel older ones. */
let searchAbort: AbortController | null = null;

const SEARCH_DEBOUNCE_MS = 200;
// Long enough that a moderate typist (~200ms inter-keystroke
// intervals) doesn't fire one Venice embed per keystroke; short
// enough that a deliberate query feels responsive. Matches the
// other drawer searches.
const SEARCH_DEBOUNCE_MS = 400;

$effect(() => {
// Reactively read searchQuery — if it changes, the cleanup below
Expand Down
2 changes: 1 addition & 1 deletion src/screens/Memories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
// Debounce keystrokes inside the relation-picker so rapid typing
// doesn't fire one embedding request per character. Same window the
// store uses for its main search.
const SEARCH_DEBOUNCE_MS = 200;
const SEARCH_DEBOUNCE_MS = 400;

// The single memory currently displayed. Selection lives on
// `route.memory` so it survives a refresh / back / forward and can
Expand Down
Loading