Skip to content

fix(v0.3.5): compose preview skips slash commands + marker-path guard - #8

Merged
rz1989s merged 1 commit into
mainfrom
fix/v0.3.5-compose-preview-guards
Jul 11, 2026
Merged

fix(v0.3.5): compose preview skips slash commands + marker-path guard#8
rz1989s merged 1 commit into
mainfrom
fix/v0.3.5-compose-preview-guards

Conversation

@rz1989s

@rz1989s rz1989s commented Jul 11, 2026

Copy link
Copy Markdown
Member

Two fixes for the compose-time preview in Ghostty standalone:

  1. Skip compose-time preview for slash commands — don't show the preview widget when the editor text starts with /. Prevents interference with commands like /vision preview.

  2. Marker-path guard/vision preview now gives a helpful error if the user passes a marker ([Image-#N]) instead of a file path, instead of a confusing 'not_found' error.

  3. Clear compose widget/vision preview clears the compose widget before opening its panel.

Two fixes for the compose-time preview:

1. Skip compose-time preview when editor text starts with / (slash command).
   Prevents the preview widget from showing while typing commands like
   /vision preview, which could interfere with the command's own panel.

2. /vision preview now clears the compose widget before opening + gives a
   helpful error if the user passes a marker ([Image-#N]) instead of a file
   path: 'pass a file path, not a marker. Example: /vision preview
   /tmp/screenshot.png'
@rz1989s
rz1989s merged commit e7ebdc6 into main Jul 11, 2026
1 check passed
@rz1989s
rz1989s deleted the fix/v0.3.5-compose-preview-guards branch July 11, 2026 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant