feat: v0.2 tests for manifest capture, diff, ignore rules, and session log

11 new tests covering manifest capture/exclusion, roundtrip, diff logic, ignore rules (task.yaml, sessions.log, .ctask/), notes updated detection, session log formatting, append-only behavior, short session detection. Fix cross-platform ignore rule for logs/sessions.log.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-06 10:01:31 -04:00
parent f5ca85a788
commit 69c487cf79
3 changed files with 349 additions and 1 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ func ignoredPath(relPath string) bool {
return true
}
// Ignore sessions.log (ctask's own logging)
if relPath == filepath.Join("logs", "sessions.log") {
if relPath == "logs/sessions.log" || relPath == "logs\\sessions.log" {
return true
}
return false