Skip to content

fix(bin): protect tmux send-keys -l from leading-dash text with -- separator - #6

Open
marcusvpn1 wants to merge 3 commits into
mainfrom
fm/fm-agy-brief-dashline-bug
Open

fix(bin): protect tmux send-keys -l from leading-dash text with -- separator#6
marcusvpn1 wants to merge 3 commits into
mainfrom
fm/fm-agy-brief-dashline-bug

Conversation

@marcusvpn1

Copy link
Copy Markdown
Owner

Fix for agy brief delivery breaking on leading-dash lines. Adds -- separator to send-keys -l calls. 39/39 local tests pass. Shellcheck clean.

…parator

agy brief delivery via fm_backend_tmux_send_literal (called through
spawn_send_literal in fm-spawn.sh) breaks when a brief line starts with
'-' (e.g. a markdown bullet), because tmux send-keys -l interprets it as
a flag and aborts with 'command send-keys: invalid flag -'.

Add -- separator to fm_backend_tmux_send_literal and fm_tmux_submit_core
so a leading '-' in text content is never misread as a flag.

Verified: tmux 3.7b, agy-harness tests pass (39/39).
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