-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Problem
idle-compact.ts and todos.ts resolve todo directories differently:
idle-compact.tsderives path fromPI_TODO_PATHorjoin('.pi','todos'), then appliesprocess.cwd().todos.tshas its owngetTodosDir()/label logic and default semantics.
This can cause idle compaction to think there are no active todos when the todo tool is actually using a different directory.
Proposed solution
- Extract shared todo-dir resolution utility used by both extensions.
- Define one canonical resolution order:
PI_TODO_PATHabsolute/relative- default
.pi/todosrelative to canonical runtime cwd (or explicit home-based path)
- Add tests proving both extensions see the same effective todo dir under different cwd/env combinations.
Helpful context
pi/extensions/idle-compact.ts:TODO_DIR,hasInProgressTodos()path resolution viaprocess.cwd().pi/extensions/todos.ts:TODO_PATH_ENV,TODO_DIR_NAME,getTodosDir(process.cwd()).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels