Skip to content

Agent-driven zsh commands can block on spelling-correction prompts when correction is enabled #13613

Description

@bivo

Pre-submit Checks

Describe the bug

When Warp Agent Mode runs commands in an interactive zsh session with spelling correction enabled, mistyped commands can trigger an interactive correction prompt like:

zsh: correct 'zef' to 'zed' [nyae]?

That prompt can block the agent flow and prevent the command from completing autonomously.

To reproduce

  1. Enable zsh correction in your shell config.
    • Example: set ENABLE_CORRECTION="true" in .zshrc
  2. Open Warp.
  3. Start an agent task that runs a mistyped shell command in the live terminal session.
  4. Have the agent execute something like:
zef file.md

Expected behavior

Agent-driven commands should not get stuck on zsh spelling-correction prompts.

The command should either:

  • run as typed and fail normally, or
  • be executed in a way that suppresses zsh correction only for agent-driven commands

Human-typed commands in the terminal should keep their normal shell behavior.

Screenshots, videos, and logs

Image

Operating system (OS)

macOS

Operating system and version

26.5.2

Shell Version

5.9 (arm64-apple-darwin25.0)

Current Warp version

v0.2026.07.08.17.54.stable_02

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

Why This Matters

This breaks autonomous agent workflows in otherwise normal zsh setups. Users who have shell correction enabled are likely to hit this during command execution, validation, or follow-up commands such as formatting and tests.

Notes

This appears to be a bug in how agent-driven commands are submitted into interactive zsh sessions, rather than a problem with Warp’s built-in command-correction UI.

A targeted fix would be to suppress zsh correction for agent-driven commands only, without changing behavior for human input.

I already have a candidate fix prepared and can open a PR once this issue is filed and labeled appropriately (ready-to-implement if maintainers agree).

Does this block you from using Warp daily?

Yes, this issue prevents me from using Warp daily.

Is this an issue only in Warp?

Yes, I confirmed that this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

Metadata

Metadata

Assignees

Labels

area:agentAgent workflows, conversations, prompts, cloud mode, and AI-specific UI.area:shell-terminalTerminal input/output, shell integration, prompt behavior, and block rendering.bugSomething isn't working.os:macmacOS-specific behavior, regressions, or requests.repro:highThe report includes enough evidence that the issue appears highly reproducible.triagedIssue has received an initial automated triage pass.warp:auto-triage-review

Type

No type

Fields

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