config: with PALEE_CONFIG_DIR unset the CLI silently uses the machine-global config and never prints which vault it acts on
Maintainers usually reply within 1 day
A pull request for this has already been merged.
- #421 by @Kuldeep2822k — merged
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 52/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- node.js, typescript
- Domain
- cli
Research direction
Start with the config path resolution in src/cli/config.ts (lines 28-37), which checks PALEE_CONFIG_DIR, then %LOCALAPPDATA%\palee, then ~/.config/palee. Then check the help text in bin/palee.ts, which doesn't mention the variable, and the output of adopt, roadmap and review. Done when verbose and --json output show the resolved vault and config path, and palee --help and config --help document PALEE_CONFIG_DIR. The refuse-write option needs a maintainer decision first.
Written by the indexing model from the issue text.
Description
Summary
PALEE_CONFIG_DIR is the only config override and appears in no help text. When it is unset, every command silently reads and writes the machine-global config, so a scripted run can act on a completely different vault than intended — and mutating commands never echo the vault they touched.
Repro
Two parallel automation runs, each meant to have its own vault. One block omitted the export:
env -u PALEE_CONFIG_DIR palee-test config show
Vault Path: D:\palee-students\turing\vault <-- another run's vault
The unscoped block then wrote 16 adopted notes into that other run's directory tree, at exit 0, while printing nothing that identified the target vault.
Impact
A data-integrity hazard for any CI job, script, or concurrent use — and completely invisible. Nothing in adopt / roadmap / review output names the resolved config file or vault.
Expected
- Print the resolved vault (and config path) on every mutating command, at minimum in verbose and
--jsonoutput. - Document
PALEE_CONFIG_DIRinpalee --helpandconfig --help. - Consider refusing a write when the target vault was not set by this invocation's own config.
Where
src/cli/config.ts:28-37 — PALEE_CONFIG_DIR override, else %LOCALAPPDATA%\palee on Windows, else ~/.config/palee. No help text anywhere in bin/palee.ts mentions the variable.
Environment
- palee 0.6.0, local build from
mainat02dacd0(installed aspalee-test; reproduce withpalee) - Node v24.19.0, Windows 11 x64, Git Bash
- Every command was run for real; exit codes captured by command substitution (never
$?after a pipe)
- Dominant language
- TypeScript
- Stars
- 1
- Forks
- 0
- Avg merge
- 15h 54m
- Merged PRs (30d)
- 163
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
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 Kuldeep2822k/cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Kuldeep2822k/cli#550 ·
Maintainers usually reply within 1 day
-
Fix: lapses string-concatenates on each review instead of throwingPossibly taken @Kuldeep2822k claimed this 2 days ago. Openbug core priority: medium
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Kuldeep2822k/cli#547 ·
Maintainers usually reply within 1 day
-
Fix: non-interactive session start prints success but creates no sessionPossibly taken @Kuldeep2822k claimed this 2 days ago. Openbug cli priority: medium
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Kuldeep2822k/cli#546 ·
Maintainers usually reply within 1 day
-
bug priority: medium storage
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Kuldeep2822k/cli#542 ·
Maintainers usually reply within 1 day
-
bug cli priority: medium
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Kuldeep2822k/cli#541 ·
Maintainers usually reply within 1 day
All issues in Kuldeep2822k/cli
Similar issues
-
e2e-failure ready-to-code
Difficulty 1/5 Under an hour Newbie friendliness 82/100
redhat-developer/rhdh-plugin-export-overlays#4616 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
ai-handle
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
nextlevelbuilder/dewee-web-v2#73 ·
Maintainers usually reply within 1 day
-
backend bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
PoCInnovation/Distribox#255 ·
Maintainers usually reply within 1 day