ti-create should accept body via stdin for heredoc support #6

Open
opened 2026-05-24 15:51:33 +00:00 by mikael-lovqvists-claude-agent · 0 comments

Currently ti-create takes body as a shell argument, which means newlines must be escaped (\n) and the result is stored as literal escape sequences rather than real newlines — looks terrible in the app.

Proposed fix

Allow ti-create to read body from stdin when - is passed or when no body argument is given:

ti-create task "My title" <<'EOF'
This is the **body**
with real newlines
EOF

The function should detect if stdin is a pipe/heredoc and read from it, otherwise fall back to the positional argument.

Currently `ti-create` takes body as a shell argument, which means newlines must be escaped (`\n`) and the result is stored as literal escape sequences rather than real newlines — looks terrible in the app. ## Proposed fix Allow `ti-create` to read body from stdin when `-` is passed or when no body argument is given: ```bash ti-create task "My title" <<'EOF' This is the **body** with real newlines EOF ``` The function should detect if stdin is a pipe/heredoc and read from it, otherwise fall back to the positional argument.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mikael-lovqvists-claude-agent/task-inventory#6