Skip to content

fix(extension): minimize automation window + reduce idle timeout#521

Merged
jackwener merged 1 commit intomainfrom
fix/minimize-automation-window
Mar 27, 2026
Merged

fix(extension): minimize automation window + reduce idle timeout#521
jackwener merged 1 commit intomainfrom
fix/minimize-automation-window

Conversation

@jackwener
Copy link
Copy Markdown
Owner

Summary

  • Create automation window with state: 'minimized' — no more visible blank data:text/html tab during command execution
  • Reduce idle timeout from 120s to 30s — window auto-closes quickly after the last command finishes

Why

Users see a jarring blank data:text/html,<html></html> page pop up when running browser commands. The window was created with focused: false but still visible in the taskbar. Minimizing it makes the automation fully invisible.

The 120s idle timeout was overly generous — most commands finish in <30s, and the lingering window confused users.

Test plan

  • Run a browser command, verify no visible window appears
  • Verify command still works correctly with minimized window
  • Verify window auto-closes ~30s after last command

- Create automation window with `state: 'minimized'` so it never
  appears in the user's taskbar or steals visual attention
- Reduce idle timeout from 120s to 30s — window closes quickly after
  the last command finishes, instead of lingering for 2 minutes
- CDP debugger works fine on minimized windows, no functional impact

Fixes the user-visible issue of a blank data:text/html tab appearing
during command execution.
@jackwener jackwener merged commit a1561e5 into main Mar 27, 2026
24 of 26 checks passed
@jackwener jackwener deleted the fix/minimize-automation-window branch March 27, 2026 16:03
Astro-Han added a commit to Astro-Han/opencli that referenced this pull request Mar 28, 2026
chrome.windows.create rejects state:'minimized' when combined with
width/height (Chrome API constraint). Revert to state:'normal' to fix
the "Invalid value for state" error. The 30s idle timeout from jackwener#521
is preserved.

Fixes jackwener#526
jackwener pushed a commit that referenced this pull request Mar 28, 2026
…al (#531)

chrome.windows.create rejects state:'minimized' when combined with
width/height (Chrome API constraint). Revert to state:'normal' to fix
the "Invalid value for state" error. The 30s idle timeout from #521
is preserved.

Fixes #526
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant