- Added
isRefreshingSessionstate to track when a session refresh is in progress - Added
lastSessionChecktimestamp to show when the last check occurred - Added
sessionRefreshCountcounter to show how many refreshes have been performed
When watching for session updates, users now see:
- During refresh: "🔄 Refreshing session... (#1)" with refresh count
- Between refreshes: "🔄 Watching for updates (every 10s)"
- Last checked timestamp: "Last checked: Dec 20, 2:35 PM"
- Refresh counter: "Refreshes: 5"
Even when no active copilot session is detected, users see:
- During check: "🔄 Checking for active Copilot session..."
- When idle: "⚪ No active Copilot session detected"
- Last checked timestamp: Shows when the last check was performed
- Start watching: Immediately performs initial refresh with visual feedback
- Auto-refresh: Every 10 seconds, shows "Refreshing..." for 1 second
- Activity feedback: Counter increments, timestamps update
- Clear indicators: User always knows when system is active vs idle
- Transparency: Users can see when the system is actively checking
- Progress tracking: Refresh counter and timestamps provide activity proof
- Immediate feedback: Visual state changes happen instantly when actions occur
- Clear status: Distinction between "watching", "refreshing", and "idle" states
The enhanced feedback ensures users can:
- See when a session refresh is actually happening (not just that watching is enabled)
- Know when the last check occurred via timestamp
- Track how many refreshes have been performed
- Understand the difference between active checking and passive waiting
This addresses the user's request for "indication when a session refresh is made or a check to see if there is an open session so the user knows something is happening."