# ApiVault v1.3.7 — Interface Clarity Phase 5 Hotfix

Author: DruxlyeSofty

## Scope

This hotfix tightens the v1.3.6 Documentation/Settings cockpit work without changing SafeRunner behavior.

## Changes

- AppShell now respects `ApiVaultDB.settings.cockpit.defaultStartPage` for direct AppShell opens and toggles.
- CommandRegistry uses the shared default-start-page resolver instead of duplicating lookup logic.
- Legacy `/av docs` fallback now prefers AppShell Documentation V2 when CommandRegistry is unavailable.
- Settings reset-position action now queues until `PLAYER_REGEN_ENABLED` instead of using `C_Timer.After(0)` during combat.
- UIStability applies compact-mode scale to hidden registered windows as well as visible windows.
- UIStability exposes queued/flushed out-of-combat operation counts in its status output.
- Documentation V2 builds a reusable search index instead of rebuilding lowercase haystacks for every query.
- PolicyBadge and EmptyState components cache repeat output strings.

## Safety

- No protected or secure execution added.
- No SafeRunner policy changes.
- No runtime source file reads added.
- No external downloads.
- UI reset is queued during combat and flushed after `PLAYER_REGEN_ENABLED`.

## Manual validation

1. `/reload`
2. `/av settings`
3. Enter `start docs`, click **Set Start Page**
4. Close the cockpit
5. Run `/av`
6. Expected: Documentation V2 opens.
7. Enter combat and click **Reset Positions**
8. Expected: operation is queued and runs after combat ends.
9. Toggle compact mode, open legacy tools, and verify registered windows scale on next show.
