[BUG] Test suite overwrites index.json with fake session IDs, kugetsu status reports ok #148
Reference in New Issue
Block a user
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?
Bug: Running the test suite (
test-kugetsu-v2.sh) can overwrite~/.kugetsu/index.jsonwith fake placeholder session IDs fromsetup_mock_sessions().Root Cause:
setup_mock_sessions()writes hardcoded test IDs directly to~/.kugetsu/index.json:test_cleanup) does not restore the original indexkugetsu statusreportsokwithout validating that session IDs actually exist in opencodeImpact:
Error: Session not foundFailed to start task after 3 attemptsFix needed:
kugetsu statusshould validate session IDs againstopencode session listand reporterrorif they do not existKUGETSU_DIR=/tmp/test-kugetsu) instead of overwriting~/.kugetsuSeverity: High - system appears to work but is completely broken