| name | tmuxweb-task-callback |
| description | null |
TmuxWeb Task Callback
Report the current conversation to TmuxWeb so it appears in the Execution History panel.
MANDATORY: Execute on Every Conversation
Run this immediately when you receive the user's first message — before any other work.
Step 1: Get pane_key and send task_started
PANE_KEY=$(tmux display-message -p '#{session_name}/#{window_index}/#{pane_id}') && \
curl -sk --noproxy '*' -X POST https://localhost:8215/api/tasks/events \
-H "Content-Type: application/json" \
-d "{\"event\":\"task_started\",\"pane_key\":\"$PANE_KEY\",\"conversation_id\":\"$(uuidgen | tr '[:upper:]' '[:lower:]')\",\"user_message\":\"USER_MESSAGE_HERE\",\"timestamp\":$(date +%s)}"
Replace USER_MESSAGE_HERE with the user's message (first 200 chars, JSON-escaped).
Error Handling
- If curl fails or TmuxWeb is down, ignore and continue — never block the user's task.
- Fire and forget. Do NOT retry.
What NOT to Do
- Do NOT send
task_completed or assistant_chunk.
- Do NOT wait for the curl response before starting work.