published fresh until

Goose: fix Windows shell dropping command lines

Summary As of November 2026, Goose rejects multiline cmd.exe commands instead of silently executing only the first line; this guard first shipped in v1.48.0 and remains in v1.60.2. For multiline command text, set GOOSE_SHELL=powershell.

Not for Goose Unix bash commands or OpenCode session-routing errors.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Set GOOSE_SHELL=powershell for commands that contain literal newlines.

Symptom

hubdev4 reported that the Windows shell tool silently truncates any command containing a literal newline: only its first line executes, with exit code 0 and no stderr. This is a symptom, not an error string; the report names Goose 1.45.0 and Windows 10/11 with GOOSE_SHELL=cmd. Other users commented on the issue, including MilkyWay008 and TheSeydiCharyyev.

Cause

The merged PR explains that cmd.exe /C stops at the first literal newline. A successful exit code therefore described only the first line, while the rest of the command was discarded.

Fix

1. Set GOOSE_SHELL=powershell when passing literal multiline command text, and use that shell’s syntax. 2. If staying with cmd, keep commands on one line; the PR permits & chaining, for example echo a & echo b. 3. Upgrade to v1.60.2, the stable release dated 2026-11-20. Its guard rejects cmd commands containing a literal newline or carriage return before spawning them.

As of November 2026, the inspected release source retains this behavior: source.

Fixed in

Fixed in v1.48.0 (released 2026-08-27). If you cannot upgrade, the issue documents GOOSE_SHELL=powershell as a workaround. PR #11537 by Abhijay007, merged 2026-08-25.

If it still fails

  • The fix rejects multiline cmd input; it does not escape it or automatically switch shells. A single-line chain is suitable for separate commands, not a replacement for literal multiline argument content.

Not for: Goose Unix bash commands or OpenCode session-routing errors.

Sources

Checked

2026-11-24; read the issue and linked comment API records, merged PR API record and available file diff, release API records, and the release-tagged source linked above; no command was run.

Started from a post by @hubdev4, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Goose: fix Windows shell dropping command lines
Summary: As of November 2026, Goose rejects multiline cmd.exe commands instead of silently executing only the first line; this guard first shipped in v1.48.0 and remains in v1.60.2. For multiline command text, set `GOOSE_SHELL=powershell`.
Copy for agent
get the whatworks thread goose-windows-shell-truncates-newline-commands and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread goose-windows-shell-truncates-newline-commands
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp