Skip to content

Spec: Add shell commands to the TUI up-arrow history menu (CODE-1906)#14192

Draft
warp-dev-github-integration[bot] wants to merge 4 commits into
masterfrom
factory/code-1906-shell-commands-in-up-arrow-history-menu
Draft

Spec: Add shell commands to the TUI up-arrow history menu (CODE-1906)#14192
warp-dev-github-integration[bot] wants to merge 4 commits into
masterfrom
factory/code-1906-shell-commands-in-up-arrow-history-menu

Conversation

@warp-dev-github-integration

Copy link
Copy Markdown
Contributor

Summary

Spec for CODE-1906: add executed shell commands to the Warp TUI up-arrow history menu, which today surfaces only agent prompts (the shell-command scope that CODE-1871 explicitly deferred). The menu will source both prompts and commands from the shared up_arrow_suggestions_for_terminal_view combiner, open on Up in both ! shell and agent modes, and execute a command when one is accepted.

This PR currently contains only the spec under .agents/specs/. The implementation will be added to this same PR/branch (the title and body will be updated to describe the shipped change at that point).

Verification

Spec-only at this stage — no code changes yet. Implementation verification (unit tests, ./script/format --check, cargo clippy, cargo nextest run, ./script/presubmit, and TUI visual proof) will be recorded here once the code lands.

Key assumptions flagged for requester review (full detail in the spec's Open questions resolved):

  • Target is the TUI crates/warp_tui/src/prompt_history_menu.rs (not the cloud-mode-v2 GUI menu, which is also prompts-only but behind the CloudModeInputV2 dogfood flag).
  • Accepting a command executes it as a shell command (mirrors the GUI AcceptCommand).
  • Up opens the menu in shell mode too (commands only there), superseding CODE-1871 invariant 25.

Originating thread: https://linear.app/warpdotdev/issue/CODE-1906/add-shell-commands-to-up-arrow-history-menu-right-now-it-just-has

This PR was generated with Oz.

@cla-bot cla-bot Bot added the cla-signed label Jul 23, 2026
oz-agent and others added 4 commits July 23, 2026 10:51
Extend the TUI up-arrow history menu (currently prompts-only per CODE-1871)
to also surface executed shell commands, reusing the shared
up_arrow_suggestions_for_terminal_view combiner. Opens in both shell and
agent modes; accepting a command executes it as a shell command.

Co-Authored-By: Oz <oz-agent@warp.dev>
…y scope)

Address requester (harry) review feedback on the CODE-1906 spec:
1. Make explicit that dependent settings (include_agent_commands_in_history,
   ignored-suggestions, AI gates) are SHARED across GUI and TUI via the shared
   up_arrow_suggestions_for_terminal_view combiner — no TUI-only duplicates.
2. Command rows use the same ! prefix the TUI transcript uses for shell-command
   rows, in the transcript's bold bright-green prefix color, with NO tinted
   row background (replaces the earlier $ affordance proposal).
3. linked_workflow_data lives on the Command variant of TuiHistoryItemKind only
   (prompts have no linked-workflow data), not on the shared TuiHistoryItem.
4. Code identifiers use PromptAndCommandHistory (not the bare 'History');
   UI/display copy keeps 'History'.
5. Strictly TUI-only — explicitly excludes all GUI menus including cloud-mode-v2.
6. Confirmed one interleaved list (prompts and commands in a single list).

Co-Authored-By: Oz <oz-agent@warp.dev>
@harryalbert
harryalbert force-pushed the factory/code-1906-shell-commands-in-up-arrow-history-menu branch from 6e8116f to 1328198 Compare July 23, 2026 19:25

Copy link
Copy Markdown
Contributor

This stack of pull requests is managed by Graphite. Learn more about stacking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants