Would it be possible to make the nightly memory consolidation hour configurable?

Aperta
#436 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@wunsir ci sta già lavorando.

Dal 22/11/2026.

  • #467 di @XiaoBinGan — chiusa senza merge
  • #471 di @wunsir — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
20/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
node.js, typescript
Ambito
backend

Direzione di ricerca

Start in apps/node-services/src/memory/scheduler.ts, where the daily consolidation task is only pushed when local.hour is 0. Before touching it, read the two open linked pull requests (#467 and #471) to see whether they already cover the configurable hour and the catch-up run. Done would mean the hour is configurable with a default of 0 and a missed midnight slot runs daily on the next hourly tick, with the scheduler's tests covering both cases.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hi, and thanks for Linger — I've been using it daily and the memory/wiki side is the part I like most.

The situation

When I read through apps/node-services/src/memory/scheduler.ts, it looks like the full daily consolidation only gets scheduled when the local hour is exactly midnight:

// The midnight slot closes yesterday; 01:00 resumes today's sessions.
...
if (local.hour !== 0) return tasks;
tasks.push({ input: { task: "daily", date: closedDate, ... }, reason: "daily", ... });

All the other hourly ticks appear to run only the incremental wiki task. I couldn't find a setting, env var or UI control for this hour — sorry if I missed one.

Why I'm asking

My laptop is on a schedule that cuts network access at 23:30, and the consolidation needs a cloud model. So in practice that nightly run usually fails for me and the day's memory doesn't get consolidated. Keeping the machine online past midnight just for this isn't really an option for me.

A possible direction

Would you consider making the consolidation hour configurable (defaulting to 0, so nothing changes for anyone else), and possibly running the daily task on the first hourly tick at or after that hour if the midnight slot was missed? That second part would also help anyone whose machine was simply asleep at midnight.

Happy to test a patch on my machine (Arch Linux, Linger 0.1.6) if that's useful.

Lingua principale
TypeScript
Stelle
3.8k
Fork
360
Merge medio
8h 10m
PR unite (30g)
540

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di simplexai-labs/linger

Tutte le issue di simplexai-labs/linger

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.