Addresses two bugbot findings:
1. HIGH SEVERITY: Agent hook constructs wrong metadata path
- Simplified hook path logic since AO_DATA_DIR now points to project-specific sessions directory
- Removed conditional nesting that created non-existent double-nested paths
- Changed from: $AO_DATA_DIR/${AO_PROJECT_ID}-sessions/$AO_SESSION
- Changed to: $AO_DATA_DIR/$AO_SESSION
2. MEDIUM SEVERITY: Tests leak directories to user's home directory
- Fixed status.test.ts to use tmpDir instead of hardcoded /home/user/my-app
- Fixed plugin-integration.test.ts to use tmpDir instead of hardcoded /tmp/test-app
- Both tests now create directories only in temporary test directories
All tests pass, lint and typecheck clean.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| __tests__ | ||
| src | ||
| templates/rules | ||
| package.json | ||
| tsconfig.json | ||
| vitest.config.ts | ||