Fixes three issues from the latest Cursor Bugbot scan: 1. **Codex reads global state not per-session** (High Severity) - Removed file-based activity detection from Codex plugin - Codex stores rollout files globally without workspace scoping - When multiple sessions run, cannot reliably match files to sessions - Now falls back to process-running check only (conservative) - Documented limitation with TODO for when Codex adds per-workspace support 2. **OpenCode uses global shared database** (Medium Severity) - Removed database mtime checking from OpenCode plugin - OpenCode uses single global SQLite database for all sessions - Multiple sessions cause activity state bleed - Now falls back to process-running check only (conservative) - Documented limitation with TODO for when OpenCode adds per-workspace support 3. **Unused TAIL_READ_BYTES export** (Low Severity) - Removed TAIL_READ_BYTES from core package exports - Only used internally by readLastJsonlEntry in utils.ts - Reduces unnecessary public API surface Net reduction: 108 lines of code that couldn't work correctly with multiple sessions. All tests passing (28 Codex + 27 OpenCode). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| index.test.ts | ||
| index.ts | ||