Skip to content

Commit 1b0c3f1

Browse files
Clear current username during watch interval wait to prevent misleading UI
When using --watch-with-interval, clear the current user from StatusExchange before starting the wait period between processing cycles. This prevents the WebUI from displaying a username during the wait, which could mislead users into thinking a specific user is still being processed. **Change:** - Add clear_current_user() call before watch interval wait in run_with_configs() - Add explanatory comment about UI clarity **User Experience:** - Before: WebUI showed last processed user during wait periods - After: WebUI shows no current user during wait, correctly indicating idle state 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 552db4b commit 1b0c3f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/icloudpd/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ def run_with_configs(global_config: GlobalConfig, user_configs: Sequence[UserCon
253253
return 0
254254

255255
# Wait for the watch interval before next iteration
256+
# Clear current user during wait period to avoid misleading UI
257+
shared_status_exchange.clear_current_user()
256258
logger.info(f"Waiting for {watch_interval} sec...")
257259
interval: Sequence[int] = range(1, watch_interval)
258260
iterable: Sequence[int] = (

0 commit comments

Comments
 (0)