warp icon indicating copy to clipboard operation
warp copied to clipboard

How do I refresh terminal history in already open existing pane?

Open ElijahLynn opened this issue 1 year ago • 4 comments

Pre-submit Checks

Describe the solution you'd like?

How do I refresh my terminal history in an already open existing warp pane? I can open a new pane and it has the recent history from another pane, but if I have an existing pane and then I go to another pane and type some commands the history is not in the first pane.

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

No response

Additional context

No response

Operating system (OS)

macOS

How important is this feature to you?

3

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

None

ElijahLynn avatar Apr 08 '25 16:04 ElijahLynn

Command+C

Ryan-ai-champ avatar Apr 08 '25 22:04 Ryan-ai-champ

Or if your looking for history hit command+P

Ryan-ai-champ avatar Apr 08 '25 22:04 Ryan-ai-champ

Warp isolates the history of each shell session while running. This means that commands created in one pane do not populate the history of other existing panes in real-time Command History. Warp only combines the history upon closing the application.

This behavior differs from other terminals like iTerm2, where the share_history zsh option allows updating history for all current zsh sessions immediately History from other terminals/sessions not synced to warp's history and vice versa.

Currently, there is no built-in way to force a history reload in an existing pane without restarting that pane. As confirmed by a Warp team member: "There isn't an existing way to force a histfile reload 'on-demand' at the moment" History from other terminals/sessions not synced to warp's history and vice versa.

Some users have requested a "Restart/Reload Session" feature that would help with this issue, but it's still an open feature request Restart / Reload Session.

As a workaround, you could:

  • Open a new pane (which will have the updated history) then close the old pane.
  • Or, use the exec zsh command in your current pane (though this may cause the Warp prompt to disappear)

This limitation is being tracked by the Warp team, but there's no immediate solution available at this time.

Closing as a duplicate of https://github.com/warpdotdev/Warp/issues/3422

dannyneira avatar Apr 08 '25 23:04 dannyneira

thank you for confirming there is no way to do this currently and linking to the duplicate

ElijahLynn avatar Apr 08 '25 23:04 ElijahLynn