Skip to content

[Bug]: Windows: Gateway 关闭 PowerShell 窗口后断连 #44559

@781791138-bot

Description

@781791138-bot

Bug type

Behavior bug (incorrect output/state without crash)

Summary

在 Windows 上使用 openclaw gateway install 安装的计划任务,在关闭 PowerShell 窗口后 Gateway 会断连,必须重新运行 openclaw gateway start 才能恢复。

Steps to reproduce

  1. openclaw gateway install - 计划任务使用 InteractiveToken,依赖用户会话
  2. 手动用 schtasks /Create /TN "OpenClaw Gateway" /TR "..." /SC ONLOGON /RL LIMITED - 配置被忽略,仍使用 InteractiveToken
  3. Start-Process 后台启动 - 关闭 PowerShell 后 Gateway 仍被杀

Expected behavior

关闭 PowerShell 窗口后 Gateway 应继续在后台运行,用户可以通过浏览器保持连接。

Actual behavior

  1. openclaw gateway install - 计划任务使用 InteractiveToken,依赖用户会话
  2. 手动用 schtasks /Create /TN "OpenClaw Gateway" /TR "..." /SC ONLOGON /RL LIMITED - 配置被忽略,仍使用 InteractiveToken
  3. Start-Process 后台启动 - 关闭 PowerShell 后 Gateway 仍被杀

OpenClaw version

2026.3.11

Operating system

Windows 11

Install method

No response

Model

Minimax

Provider / routing chain

OpenClaw

Config file / key location

No response

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbug:behaviorIncorrect behavior without a crash

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions