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

未关闭
#17 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
58/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
electron, nodejs, typescript
领域
desktop-dev

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
TypeScript
星标
2
派生
1
平均合并
5 分钟
30 天内合并 PR
19

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

A21-devs/cortex 的其他 Issue

查看 A21-devs/cortex 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。