Skip to content

[antigravity-cli-hands-on] #2170

Description

@nabizadeh

Bug: "Copy code sample" includes dollar sign prefix and command output

The "Copy code sample" button copies more than just the code — it also includes the $ prompt prefix and any output printed below the command. It should only copy the code itself.

Steps to reproduce:

  1. Find a code block with a $ prompt prefix and output, e.g.:
$ agy --version
1.0.7
  1. Click "Copy code sample"
  2. Paste — the $ prefix and 1.0.7 output line are included in the pasted text

Expected behavior: Only agy --version is copied.

Actual behavior: The copied text includes the $ prefix and the 1.0.7 output line.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
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