You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove app mode auto-toggle for small viewports (kernel#155)
## Summary
- Removes the `ensureAppMode` logic that automatically added `--app`
flag and forced Chromium restarts when switching to viewports below
500px width
- The patched kernel-browser removes Chromium's minimum width
constraint, making this workaround unnecessary
- Removes `RemoveFlagsByPrefix`, `HasFlagWithPrefix`, `appModeURL`
constant, and associated tests
## Test plan
- [x] Verified locally with patched Chromium (v145) — 390x844 viewport
works without `--app` mode or restart
- [ ] CI passes
Made with [Cursor](https://cursor.com)
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Removes a conditional flag-mutation path during display resizing;
behavior change is localized and simplifies the restart logic, with
minimal impact outside small-viewport scenarios.
>
> **Overview**
> Removes the *small-viewport “app mode” workaround* in `PatchDisplay`:
resolution changes no longer auto-add/remove the Chromium `--app` flag
(and no longer force a restart solely due to that toggle).
>
> Cleans up the now-unused support code by deleting `appModeURL`,
`ensureAppMode`, and the `chromiumflags` helpers
`RemoveFlagsByPrefix`/`HasFlagWithPrefix` along with their unit tests;
`chromiumFlagsPath` is kept as a single constant for flag-file
operations.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
c47197f. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Co-authored-by: Cursor <cursoragent@cursor.com>
0 commit comments