Skip to content

Windows multi-monitor setups crash server on mouse movement due to non-disableable corner exit guard #316

@sharpninja

Description

@sharpninja

Describe the bug
When running Open Interpreter in server mode with the --os flag (computer control enabled), the process immediately exits with the message:
Mouse moved to corner. Exiting...

any time the physical mouse cursor reaches any corner of any monitor in a multi-monitor setup. This makes the server completely unusable on Windows systems with more than one screen, because normal mouse movement between monitors triggers the exit within seconds.

Expected behavior

The mouse-corner exit guard should either be disabled via an environment variable (none of the tried variables work), or respect multi-monitor setups by only checking corners on the primary display, or be completely optional and configurable in server mode.

Current behavior

The guard appears to be hard-coded and unconditional in the current version. Setting environment variables such as:

INTERPRETER_OS_MOUSE_CORNER_EXIT=false  
INTERPRETER_OS_DISABLE_CORNER_EXIT=true  
INTERPRETER_OS_MOUSE_CORNER_EXIT_ENABLED=false  
INTERPRETER_DISABLE_SAFETY_GUARDS=true  
INTERPRETER_NO_EXIT_ON_CORNER=true  

has no effect — the server still exits when the mouse reaches a corner.

To Reproduce

  1. Windows 11 with a multi-monitor setup
  2. Python 3.12 (also reproduced on 3.11)
  3. Install via pip install open-interpreter (latest from PyPI as of February 2026)
  4. Run the command: interpreter --server --port 9999 --os --model ollama/llama3
    (or any equivalent command that includes the --os flag)
  5. Move the physical mouse cursor to any corner of any screen (primary or secondary)
    → the server prints "Mouse moved to corner. Exiting..." and terminates immediately.

Environment

Operating System: Windows 11 24H2 (or similar recent build)
Number of monitors: 2 or more (issue occurs on both primary and secondary displays)
Python version: 3.12.10 (also tested on 3.11.9)
Open Interpreter version: Open Interpreter 0.4.3 Developer Preview
Installed via: pip (global install)
Multi-monitor: Yes — exit triggers on corners of every monitor

Additional context and attempted workarounds

Tried every known or suggested environment variable to disable the corner check — none had any effect.
Single-monitor mode works fine (no exit occurs), but disconnecting secondary monitors is not a practical solution for daily use.
Running the server without the --os flag avoids the crash entirely, but removes physical mouse and keyboard control, which is necessary for driving applications like Cursor or Copilot through the agent.
Manually patching the source code (commenting out the sys.exit() call after the corner check) resolves the issue locally, but this is not a maintainable solution for regular users.

Proposed solutions (in order of preference)

  1. Introduce a working environment variable such as INTERPRETER_DISABLE_CORNER_EXIT=true that reliably skips the exit check.
  2. Change corner detection to only apply to the primary monitor by default on multi-monitor Windows systems.
  3. Add clear documentation stating that the corner guard cannot be disabled on Windows and recommend running without --os for multi-monitor users.
  4. Add a CLI flag such as --no-corner-guard or --unsafe-mode for advanced users who want to disable the safety check.

This issue completely blocks the use of phone-to-desktop control (via the 01 Light app) with --os on any Windows system that has more than one monitor — a very common setup.

Thank you for maintaining this project. I hope this can be addressed so Windows users can take full advantage of the phone integration and computer-control features.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions