Skip to content

docs(cli): agent conversations and conversation management - #399

Open
hongyi-chen wants to merge 8 commits into
hyc/launch-clifrom
hyc/launch-cli-cli-agent-conversations
Open

docs(cli): agent conversations and conversation management#399
hongyi-chen wants to merge 8 commits into
hyc/launch-clifrom
hyc/launch-cli-cli-agent-conversations

Conversation

@hongyi-chen

@hongyi-chen hongyi-chen commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Pages changed

  • src/content/docs/cli/agent-conversations.mdx (full draft replacing the stub; now also absorbs the conversation-management content from PR docs(cli): conversations #397, which will be closed)

Features covered

  • Streaming transcript: pinned-to-bottom streaming, scrollback, progress indicator, Ctrl+C to stop a response
  • Markdown rendering: headings/lists/links/inline code, syntax-highlighted code blocks (with truncation for very long blocks), GFM tables, Mermaid-as-source, image alt-text fallback
  • Tool-call rendering: state glyph + label rows, interleaved with prose; pointers to richer cards (shell commands, diffs, questions, plans) and to the permissions page for approval cards
  • Code diffs: per-file headers with Updated/Created/Deleted + line counts, multi-file summary grouping, expanded while awaiting approval, e expand/collapse all during approval, click-to-toggle per file, collapse after apply
  • Thinking blocks: expanded Thinking... while streaming, collapse to Thought for <duration> on finish, click to toggle
  • Agent questions: arrow/number/click selection, Enter to confirm, (recommended) badge (confirmed shipped on master), multi-select check marks, Other… free-form answer, multi-question advance
  • Task lists: ≡ Tasks header, status glyphs (pending/in-progress/completed, canceled struck through), expanded by default, ✓ Completed (n/m) progress rows; cross-links agent-platform/capabilities/task-lists
  • Planning: /plan <task>, inline plan document, Updated plan entries, click header or Ctrl+Shift+P to toggle; cross-links agent-platform/capabilities/planning
  • Selecting/copying: drag select with copy-on-release + copied to clipboard confirmation, double/triple-click word/row selection, drag auto-scroll, local clipboard vs OSC 52 over SSH/tmux note, /export-to-clipboard and /export-to-file

Absorbed from PR #397 (Managing conversations)

  • Conversation persistence and restore: auto-save to the Warp account; reopening rehydrates the full transcript including tool calls and file-edit diffs; single-conversation surface with switch guards while a conversation/command is running
  • Starting new conversations: /new, /agent, /clear (aliases) with optional immediate prompt argument
  • Conversation history: /conversations menu and left-arrow-at-empty-input shortcut (incl. the ← for conversations ghost hint); type-to-filter, arrow navigation, Enter/Esc; list includes Warp app conversations and completed cloud agent runs; local-only fallback caution when cloud data fails to load
  • /compact: default and custom summarization instructions; collapsed Conversation summary block, expandable
  • Exit/resume: exit prints warp --resume <token> for non-empty conversations; --resume restores at startup; cross-links cli/reference

Dropped/unconfirmed

  • Opt-in auto-copy on select (APP-4994): no settings gate exists on master; copy-on-select is unconditional in the transcript (and the CODE-1806 product spec lists settings-gating as a non-goal). Documented the actual always-on behavior instead.
  • Multiple simultaneous in-progress conversations (from docs(cli): conversations #397): not shipped; the CLI has a single conversation surface and switching replaces it (task marked confirm-or-drop, so dropped).
  • (recommended) marker (APP-5018): NOT dropped; confirmed shipped (badge rendering wired in the ask-question view and option selector on master).

Notes for review

  • Diffs are documented as "expanded while awaiting approval, collapsed after apply" rather than the outline's "expanded by default", matching the shipped auto expand/collapse behavior; the e binding is documented as active while the approval card is focused, matching its keybinding context.
  • Ctrl+P contextual plan toggle (terminals without extended keyboard support) is not documented; the page points to the on-screen hint that shows the exact shortcut.
  • Consolidation: former /cli/conversations/ links in this page now point to internal anchors; links to other pages keep their current slugs (renames happen at integration). conversations.mdx itself is untouched on this branch; the orchestrator deletes it at integration.

Suggested reviewer(s): harry, ian (moira for markdown rendering)

Co-Authored-By: Oz oz-agent@warp.dev

Covers the streaming transcript, Markdown/Mermaid rendering, tool-call
rows, file-edit diffs, thinking blocks, interactive agent questions,
task lists, /plan flow, and transcript selection/copy for the Warp CLI.

Co-Authored-By: Oz <oz-agent@warp.dev>
@cla-bot cla-bot Bot added the cla-signed label Jul 28, 2026
@vercel

vercel Bot commented Jul 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview Jul 29, 2026 11:40pm

Request Review

@oz-for-oss

oz-for-oss Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

@hongyi-chen

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@oz-for-oss oz-for-oss Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR replaces the stub src/content/docs/cli/agent-conversations.mdx page with a complete feature doc for agent conversation behavior in the Warp CLI, including transcript streaming, tool calls, diffs, questions, task lists, planning, and copying/exporting output. The content is scoped to the changed page, uses the repository's variable conventions already present in the stub, and links to related agent capabilities.

Concerns

  • No blocking correctness, security, or documentation-structure concerns found in the attached diff.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

{{WARP_CLI}} tokens are not substituted in MDX frontmatter by the
content layer, so built titles/descriptions showed the raw token.
Body prose keeps {VARS.WARP_CLI}.

Co-Authored-By: Oz <oz-agent@warp.dev>
Adds a Managing conversations section group (persistence/restore,
/new /agent /clear, /conversations menu + left-arrow shortcut,
/compact, exit summary + --resume) from the standalone conversations
page, which is being removed in the consolidation. Updates the intro,
description, and related pages accordingly.

Co-Authored-By: Oz <oz-agent@warp.dev>
@hongyi-chen hongyi-chen changed the title docs(cli): agent conversations docs(cli): agent conversations and conversation management Jul 28, 2026
hongyi-chen and others added 2 commits July 28, 2026 15:03
Follows the launch-name change; body prose picks up the new name via
the WARP_CLI var from the base branch merge.

Co-Authored-By: Oz <oz-agent@warp.dev>
Reduces product-name repetition after the intro, links bold lead terms
in the tool-call list instead of trailing See-X sentences, swaps
'unfolds' for 'appears', fixes 'just', and de-metas the intro's
managing-conversations pointer. No factual, heading, or link-target
changes.

Co-Authored-By: Oz <oz-agent@warp.dev>
{/* TODO(cli-agent-conversations): streaming responses, markdown and Mermaid rendering, scrolling. */}
Your prompt appears in the transcript on a highlighted row marked with `>`, followed by the agent's streaming response. The transcript stays pinned to the newest output while the agent responds. Scroll up with the mouse wheel to review earlier output; scroll back to the bottom to resume following new output. While the agent is working, a progress indicator with elapsed time appears above the input. Press `Ctrl+C` once to stop the current response.

### Markdown rendering

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think it's worth mentioning this markdown rendering stuff, not that useful to an end user

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 05fdfdd — collapsed the bulleted list (and the Markdown rendering H3; nothing links to its anchor) into two sentences that keep only the non-obvious caveats: Mermaid renders as source, images show alt text, very long code blocks truncate.

## The conversation transcript

{/* TODO(cli-agent-conversations): streaming responses, markdown and Mermaid rendering, scrolling. */}
Your prompt appears in the transcript on a highlighted row marked with `>`, followed by the agent's streaming response. The transcript stays pinned to the newest output while the agent responds. Scroll up with the mouse wheel to review earlier output; scroll back to the bottom to resume following new output. While the agent is working, a progress indicator with elapsed time appears above the input. Press `Ctrl+C` once to stop the current response.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think the scrolling stuff is necessary, can we simplify that? feels self-explanatory

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 05fdfdd — cut the scroll-up/scroll-down and pinned-to-newest narration. The section now covers only the prompt row, the progress indicator, and Ctrl+C to stop the response.

## Tool calls

{/* TODO(cli-agent-conversations): how tool calls render (commands, file reads, etc.), expand/collapse. */}
Every tool call the agent makes appears in the transcript in the order it happens, interleaved with the agent's prose. Most tool calls render as a single status row: a colored state glyph followed by a label describing the call, such as reading a file or searching your codebase. The glyph updates as the call moves from pending to running to finished, and failed or canceled calls are marked accordingly.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again, this also feels unnecessary for a user to know, you can mention this high level, but i don't think you need to be super detail oriented here

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 05fdfdd — kept the high-level statement (inline status row with glyph + label) and the four navigation bullets, dropped the pending/running/finished/failed glyph state detail. Also swept the rest of the page with the same lens (menu how-tos, click-to-collapse, and double/triple-click narration removed).

Per PR review: cut transcript scrolling narration, collapse the
markdown-features list to its non-obvious caveats (folding the H3),
drop the tool-call glyph state-machine detail, and sweep the rest of
the page with the same lens (menu how-tos, click-to-collapse, and
double/triple-click narration removed). Feature facts, caveats,
shortcuts, and cross-links are unchanged.

Co-Authored-By: Oz <oz-agent@warp.dev>
Seven targeted trims: intro filler sentence, diff-header bullet detail,
multi-question tail, bold header adjective, copy-confirmation footer
mention, managing-conversations enumeration, and history restore
phrasing.

Co-Authored-By: Oz <oz-agent@warp.dev>
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.

1 participant