You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Todo persistence ignores T3CODE_HOME and hardcodes ~/.t3code #111
This ignores the T3CODE_HOME environment variable entirely. Every other persistence module in the codebase respects the configured base directory — todos is the only holdout.
Impact
AGENTS.md requires all dev instances to use isolated state directories:
Always run dev with an isolated home directory:
./scripts/dev.sh → sets T3CODE_HOME=~/.t3-hcode
When running an isolated dev server, the todo module reads and writes the user's real production todo file at ~/.t3code/todos.json. This:
Corrupts the production data with test mutations
Leaks production data into the dev session
Violates the dev-isolation contract
Fix
Thread the configured base directory (from ServerConfig) through to todoPersistence.ts, matching the pattern used by every other persistence module:
Activity
fix: thread ServerConfig baseDir through todo persistence (#118)
[codex] sync v0.0.27 retained features (#131)