mirror of
https://github.com/OthmanAdi/planning-with-files.git
synced 2026-04-25 16:06:02 +03:00
[GH-ISSUE #78] session-catchup false positive in skill-distributed copies (not root script) #48
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/planning-with-files#48
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gydx6 on GitHub (Feb 15, 2026).
Original GitHub issue: https://github.com/OthmanAdi/planning-with-files/issues/78
Summary
False positive catchup occurs in skill-distributed copies of
session-catchup.py.Affected scope
.adal/skills/planning-with-files/scripts/session-catchup.py.codebuddy/skills/planning-with-files/scripts/session-catchup.py.codex/skills/planning-with-files/scripts/session-catchup.py.continue/skills/planning-with-files/scripts/session-catchup.py.gemini/skills/planning-with-files/scripts/session-catchup.py.openclaw/skills/planning-with-files/scripts/session-catchup.py.opencode/skills/planning-with-files/scripts/session-catchup.py.pi/skills/planning-with-files/scripts/session-catchup.pyskills/planning-with-files/scripts/session-catchup.pyscripts/session-catchup.py(root script has early-return behavior)Why this is a bug
In affected skill copies,
has_planning_filesis computed inmain()but not used to gate behavior. When no planning update is found, the script falls back to recent messages and still prints unsynced context.This can produce false positives and inject unrelated context into a fresh session.
Reproduction
task_plan.md,findings.md, orprogress.md.SKILL.md:[planning-with-files] SESSION CATCHUP DETECTEDNo planning file updates found in previous session--- UNSYNCED CONTEXT ---Expected behavior
If no planning files exist, or no planning update exists, the script should exit silently (no catchup report).
Actual behavior
Catchup report is emitted from non-planning context.
Suggested fix
Either approach is fine:
has_planning_filesis false.last_update_line < 0), aligning behavior with rootscripts/session-catchup.py.@gydx6 commented on GitHub (Feb 15, 2026):
Additional verification: this is a script-copy sync issue (copy drift), not only a single-path bug.
I checked all
session-catchup.pycopies in the repo tree. The same false-positive behavior is present in multiple skill-copy paths, including:.adal/skills/planning-with-files/scripts/session-catchup.py.codebuddy/skills/planning-with-files/scripts/session-catchup.py.codex/skills/planning-with-files/scripts/session-catchup.py.continue/skills/planning-with-files/scripts/session-catchup.py.gemini/skills/planning-with-files/scripts/session-catchup.py.openclaw/skills/planning-with-files/scripts/session-catchup.py.opencode/skills/planning-with-files/scripts/session-catchup.py.pi/skills/planning-with-files/scripts/session-catchup.pyskills/planning-with-files/scripts/session-catchup.pyBy contrast, root
scripts/session-catchup.pyuses a different early-return flow and does not show this specific behavior.So the fix likely needs to be applied consistently across generated/distributed script copies, and ideally enforced by a single source-of-truth or sync check in CI.
@OthmanAdi commented on GitHub (Feb 20, 2026):
Thank you so much @gydx6 for this incredible contribution.
Your bug report was exceptionally detailed: you identified the exact scope (9 affected files), explained the root cause clearly, and then delivered a clean, well-tested fix. This is exactly the kind of thoughtful contribution that makes open source great.
The fix is now live in #79. I genuinely appreciate you taking the time to not only report this but to solve it properly. Welcome to the contributors of planning-with-files! 🙏