Skip to content

Feature Request: Opt-in auto-restoration for specific persistent CLI sessions (e.g., Claude, Codex, REPLs, AI agents) #10185

@dhruvil009

Description

@dhruvil009

Pre-submit Checks

Describe the solution you'd like?

I would like a way to explicitly tell Warp to auto-execute specific commands when restoring a session.

A few potential ways this could be implemented safely without risking the auto-execution of dangerous commands:

  1. A Command Whitelist: A configuration option (in UI or ~/.warp/) where I can specify safe commands (e.g., claude --resume, htop, k9s). If one of these was the active foreground process when Warp closed, auto-run it on restore.
  2. "Sticky" Panes: A UI toggle on a pane (via right-click or command palette) to "Auto-run current command on restore," giving the user explicit, localized control.
  3. Directory-based Startup Commands: The ability to map a specific directory to a startup command, so whenever a pane is restored in that pwd, the command is executed.

Is your feature request related to a problem? Please describe.

When I restart Warp, the terminal does an excellent job of restoring my windows, tabs, panes, and working directories. However, it drops the active processes that were running in those panes.

I frequently run persistent, long-standing CLI sessions—specifically agentic AI workflows like claude or codex. Every time Warp restarts, I have to manually go through multiple panes and re-type claude --resume (or similar commands) to get my workspace back to its exact previous state.

Additional context

As developers increasingly rely on long-running local agents and conversational CLIs alongside traditional editors, the terminal is becoming less of a transient command runner and more of a persistent dashboard. Allowing opt-in state restoration for these tools would be a massive workflow improvement.

Operating system (OS)

macOS

How important is this feature to you?

4

Warp Internal (ignore) - linear-label:39cc6478-1249-4ee7-950b-c428edfeecd1

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:launch-configsLaunch configurations, workflows, tab configs, and automation entry points.area:shell-terminalTerminal input/output, shell integration, prompt behavior, and block rendering.area:window-tabs-panesWindow, tab, pane, and workspace layout management.enhancementNew feature or request.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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions