Untrack warm-state JSON and keep it out of the worktree
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 80/100
- Issue type
- Refactor
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- git, javascript, node.js
- Domain
- tooling
Research direction
Start by running git ls-files scripts to confirm both state files are tracked, then read the write/update sites in scripts/warm.mjs (around lines 32 and 139-140) and scripts/warm-og.mjs (around lines 13 and 44-45) to see where the path is chosen. Add a single state-directory helper honoring an env override and defaulting to ${XDG_STATE_HOME:-$HOME/.local/state}/gitone, update .gitignore, and untrack both files with git rm --cached. Done means git status --porcelain is clean after running both warmers and the location is documented in CONTRIBUTING.md or under scripts/.
Written by the indexing model from the issue text.
Description
Current behavior
The warmers write their progress into tracked files inside the repository. Every run changes the worktree, creates review noise and can cause merge conflicts.
git status after a run shows:
M scripts/.og-warm-state.json
M scripts/.warm-state.json
Cause
.gitignorelistsscripts/.warm-state.json, but the file is already tracked; gitignore does not untrack it.scripts/.og-warm-state.jsonis not ignored at all.scripts/warm.mjs:32andscripts/warm-og.mjs:13write state in place;scripts/warm.mjs:139-140andscripts/warm-og.mjs:44-45update it.
Expected behavior
Warm state is local runtime data, not source. Move it outside the repository, for example under ${XDG_STATE_HOME:-$HOME/.local/state}/gitone, or under an ignored scripts/.state/ directory. Untrack both files with git rm --cached; add both names to .gitignore; allow an override through an environment variable for CI or multiple checkouts.
Acceptance
git ls-filesno longer lists either state file.git status --porcelainis clean after a warm run.- A fresh checkout can run both warmers without creating tracked changes.
- The state location is documented in
scripts/orCONTRIBUTING.md.
- Dominant language
- TypeScript
- Stars
- 7
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from LangerSword/gitone
-
accessibility bug help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
LangerSword/gitone#6 ·
-
bug help wanted
Difficulty 3/5 1-2 days Newbie friendliness 72/100
LangerSword/gitone#5 ·
-
bug help wanted
Difficulty 3/5 Half a day Newbie friendliness 72/100
LangerSword/gitone#4 ·
-
bug help wanted security
Difficulty 4/5 3-5 days Newbie friendliness 35/100
LangerSword/gitone#3 ·
-
Add a /health endpointPossibly taken @LangerSword claimed this today. Opengood first issue
Difficulty 1/5 1-3 hours Newbie friendliness 45/100
LangerSword/gitone#2 · 1 comment ·
All issues in LangerSword/gitone
Similar issues
-
MCP tool results drop structuredContent when text is only a summaryPossibly taken @Pankaj-bit361 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
inblockio/siwx-oidc-matrix-server#101 ·
Maintainers usually reply within 1 day
-
status:needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
pingdotgg/t3code#42253 · 1 comment ·
Maintainers usually reply within 1 day