# FIX: Stop Console Window from Flashing

## Problem
The periodic save task shows a flashing console window every minute.

## Solution (Pick One)

### Option 1: Quick Update (Recommended)
```powershell
# Run this in PowerShell
.\.claude\hooks\update_to_invisible.ps1
```

### Option 2: Recreate Task
```powershell
# Run this in PowerShell
.\.claude\hooks\setup_periodic_save.ps1
```

### Option 3: Manual Fix (Task Scheduler GUI)
1. Open Task Scheduler (Win+R → `taskschd.msc`)
2. Find "ClaudeTools - Periodic Context Save"
3. Right-click → Properties
4. **Actions tab:** Change Program/script from `python.exe` to `pythonw.exe`
5. **General tab:** Check "Hidden" checkbox
6. Click OK

---

## Verify It Worked

```powershell
# Check the executable
Get-ScheduledTask -TaskName "ClaudeTools - Periodic Context Save" |
    Select-Object -ExpandProperty Actions |
    Select-Object Execute

# Should show: ...pythonw.exe (NOT python.exe)

# Check hidden setting
Get-ScheduledTask -TaskName "ClaudeTools - Periodic Context Save" |
    Select-Object -ExpandProperty Settings |
    Select-Object Hidden

# Should show: Hidden: True
```

---

## What This Does

- Changes from `python.exe` → `pythonw.exe` (no console window)
- Sets task to run hidden
- Changes to background mode (S4U LogonType)

**Result:** Task runs invisibly - no more flashing windows!

---

**See:** `INVISIBLE_PERIODIC_SAVE_SUMMARY.md` for complete details
