# IM-Press Known Issues

## Active Bugs

None currently.

## Resolved Bugs

### BUG-001: Agent Workflows `/templates` endpoint returns HTTP 500 — FIXED in v3.4.2
- **Severity:** Low (experimental module, not user-facing)
- **Root cause:** Missing `check_permissions` method (referenced 5 times in REST route definitions but never defined) + wrong class name `AgentLog::log()` (should be `IMPress_Agent_Log::log()`, 10 occurrences).
- **Fix:** Added `check_permissions` method, fixed all class references. Agent layer now feature-flagged behind `IMPRESS_AGENT_LAYER` constant — 5 classes (~6,000 lines) no longer load by default.
- **Discovered:** 2026-04-04 via smoke test. **Fixed:** 2026-04-04 in v3.4.2.

### BUG-002: WP admin duplicate menus + blank Products page — FIXED in v3.4.3
- **Severity:** Medium (affected all admin users)
- **Root cause:** 3 separate `add_menu_page()` calls (v1 dashboard, v2 dashboard, Forms V2) + submenus under 6+ different parent slugs. v2 dashboard React mount points overrode v1's working PHP pages via slug conflicts.
- **Fix:** Consolidated all 19 submenu items under single `impress` parent. v1 provides functional PHP admin pages, v2 provides Overview only. 17 PHP files modified.
- **Discovered:** 2026-04-04 by user. **Fixed:** 2026-04-04 in v3.4.3.

## Pending Patches (not yet in canonical ZIP)

None currently. (PATCH-001 — products shortcode — baked into v3.4.3 canonical ZIP.)

## Feature Flag Candidates

### Agent Layer (5 classes, ~6,000 lines)
- `class-agent-log.php`
- `class-abilities.php`
- `class-mcp-bridge.php`
- `class-ai-client-bridge.php`
- `class-agent-workflows.php`

These were built speculatively for WordPress 7.0's expected agent API. They add significant code weight with no current production use. Recommend wrapping behind:
```php
if ( defined( 'IMPRESS_AGENT_LAYER' ) && IMPRESS_AGENT_LAYER ) {
    // require + init agent classes
}
```
