Files
pando-ramet 949e04afc1 fix(thread-ledger): restore the os import the ledger split dropped
`main` resolves the default turn-summary path through `os.homedir()`,
and the entry point's rewritten import block did not carry `node:os`.
Every `ledger declare` without TURN_SUMMARY_PATH set threw
`ReferenceError: os is not defined`.

The suite never saw it: the declare tests exercise `declareText`, which
is pure, so the CLI branch that builds the fallback path had no test at
all. It has one now — the CLI run as a process, with HOME pointed at a
temp directory and the env var unset, asserting the file lands at
`$HOME/.claude/turn-summary.txt`. It fails on the broken import and
passes on the fix.

ADVANCES #188

Claude-Session: https://claude.ai/code/session_014CUXJh1hKmW4ccUwRQ1Ep1
2026-09-04 14:10:20 +00:00
..