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

Abierto
#17 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
58/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
electron, nodejs, typescript
Área
desktop-dev

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
2
Forks
1
Merge medio
5 min
PR fusionados (30 d)
19

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de A21-devs/cortex

Todos los issues de A21-devs/cortex

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.