LoadContext: SessionStart resume hint uses LIFEOS/Tools, shipped dir is LIFEOS/TOOLS — 404s on case-sensitive FS (residual of #1406)
Summary
LoadContext.hook.ts builds the SessionStart resume hint from paiDir + '/Tools', but the shipped directory is LIFEOS/TOOLS (uppercase). On macOS both resolve identically; on a case-sensitive filesystem the emitted command points at a path that doesn't exist.
This is a residual of the class #1406 addressed (runtime-root LifeOS → LIFEOS). That sweep normalized the root; this one is a level down and survived it. Filing it separately because the class is worth a line of thought, not because the instance is urgent — it isn't.
Location
https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/hooks/LoadContext.hook.ts#L379
const toolsDir = paiDir + '/Tools';
summary += `\n💡 To resume project: \`bun run ${toolsDir}/SessionProgress.ts resume <project>\`\n`;
summary += `💡 To complete project: \`bun run ${toolsDir}/SessionProgress.ts complete <project>\`\n`;
Verified against main via the contents API today:
LifeOS/install/LIFEOS/containsALGORITHM DOCUMENTATION PULSE RULES TOOLS USER_TEMPLATES— i.e.TOOLS, uppercase.- The target file is
LifeOS/install/LIFEOS/TOOLS/SessionProgress.ts(10,077 bytes).
Behaviour
Every session on Linux prints:
💡 To resume project: `bun run ~/.claude/LIFEOS/Tools/SessionProgress.ts resume <project>`
💡 To complete project: `bun run ~/.claude/LIFEOS/Tools/SessionProgress.ts complete <project>`
Copy/paste either and bun reports the module doesn't exist. On macOS the same string works, so the defect is invisible from the development platform.
Impact is genuinely small — a suggested command that doesn't run, no data at risk. Worth reporting mainly because of where it sits: it's in the session-start banner, so it's one of the first things a new Linux user reads.
Fix
- const toolsDir = paiDir + '/Tools';
+ const toolsDir = paiDir + '/TOOLS';
Confirmed locally: the resume/complete commands then resolve and run.
The wider point, offered lightly
The reason #1406 and this one both exist is structural rather than anyone's oversight: on a case-insensitive filesystem, a casing mismatch is unobservable. It can't be caught by review, by testing, or by care — the FS resolves it before anyone sees it. It only becomes real on ext4/APFS-case-sensitive.
That's compounded by LifeOS having two legitimate conventions for the same word, which is a reasonable design and also a trap:
| Path | Convention |
|---|---|
LIFEOS/TOOLS |
UPPER — runtime |
skills/<Name>/Tools |
Mixed — skill-local |
LIFEOS/PULSE/Tools |
Mixed — inside runtime |
Both are correct in their own context, so a developer writing '/Tools' isn't being careless — they're pattern-matching the convention they saw most recently, and their machine agrees with them.
If it's ever useful, the cheapest guard I know is a CI step on a Linux runner that resolves declared paths and fails on a miss — it catches the whole class in one job, rather than one instance at a time. Sketch:
# .github/workflows/paths.yml (ubuntu-latest)
- name: Assert declared paths resolve on a case-sensitive FS
run: |
rg -oIN --glob '*.ts' --glob '*.sh' \
-e "LIFEOS/[A-Za-z_][A-Za-z0-9_/]*\.[a-z]{2,4}" LifeOS/install \
| sort -u | while read -r p; do
[ -e "LifeOS/install/$p" ] || { echo "unresolvable: $p"; FAIL=1; }
done
[ -z "$FAIL" ]
I ran the equivalent locally against my tree; after this one line the LifeOS-owned paths resolve clean. Happy to open it as a PR if it's wanted — equally happy if it isn't, since CI minutes and reviewer attention are real costs and this may simply not be where the project's leverage is right now.
Context / why I'm bothering to write it up
I run LifeOS hard on Linux and came through the PAI → LifeOS 6 upgrade with a large existing corpus, which is a good way to find exactly this genre of thing. Upgrades over accumulated state surface path assumptions that a clean install never touches, and none of it is surprising for a project moving at this pace — a small user base on one dominant platform is precisely when this class stays invisible.
The reason I think it's worth a few minutes now rather than later: if LifeOS reaches real adoption, "the first thing the banner told me to run didn't work" is a rough first five minutes for a Linux user, and it's a one-line fix today versus a recurring triage cost at volume. Entirely your call on priority and framing — you have a clearer view of where the project's effort should go than I do, and I'd rather hand you a verified line number than an opinion.
Thanks for LifeOS — the germline/corpus separation in particular has held up remarkably well through a full scaffold replacement on my end.
I work in gov space, we are provisioning some MacBooks for LifeOS on local models as a test case, but it will never be the norm for you--I understand that. Infra spend will move fast to GPU cards in the cloud if it works. I would like it to work, if possible. Much like many great open source things. ;-)
Fixed — the resume hint now builds from /TOOLS with a casing note in the code so this class doesn't regrow (LoadContext.hook.ts). Your CI-sketch idea for a case-sensitive path gate is noted for the release pipeline. Ships in the next release — and you're in the README Credits. Thanks for the verified line number and the class analysis; both made this a two-minute fix.