Screenshot runs start a runner and create Cortex's files in the vault they open

Aperta
#17 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
electron, nodejs, typescript
Ambito
desktop-dev

Direzione di ricerca

Start with the screenshot entry point behind npm run desktop:shot and the SealedChip component in RailStatus.tsx, which requests seal status from cortex-runner.js serve. Find where the runner is spawned in screenshot mode, and where the nested .gitignore files and .vault-meta/cortex/state/colours.json are written. Done when a screenshot run on a fresh npm run sample vault starts no runner and leaves the vault file tree unchanged.

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

Descrizione

bug

npm run desktop:shot is meant to open the vault read-only. On a vault Cortex has not used before, a screenshot run still:

  • starts a cortex-runner.js serve child process: the side rail's "Sealed through" line (SealedChip in RailStatus.tsx) asks the runner for its seal status
  • creates Cortex's own files in the vault: the nested .gitignore files of its folders and .vault-meta/cortex/state/colours.json

These are Cortex's runtime files, not notes, and a vault Cortex already uses has them already. But a screenshot run should leave the vault exactly as it found it and start no runner.

Found while adding the stand-in agents status (#9), and reproduced on unchanged main with a fresh npm run sample vault.

Fix idea: in screenshot runs, skip the seal-status request (or answer it from a stand-in, as with the agents status) and keep colour slots in memory instead of saving them.

Lingua principale
TypeScript
Stelle
2
Fork
1
Merge medio
5m
PR unite (30g)
19

Preparare l'ambiente

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 A21-devs/cortex

Tutte le issue di A21-devs/cortex

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.