Hi, i got telegram setup but when i use /send and select the agent then send the text , the text arrive in codex but stay in the input box with a break line.
I was able to reproduce this with Herdr 0.7.5 and Codex and confirmed the root cause.
The Telegram bot currently submits /send as two low-level pane operations:
herdr pane send-text ...
herdr pane send-keys ... Enter
In Codex's interactive TUI, the simulated Enter is interpreted as a newline inside the prompt editor instead of submitting the prompt. That is why the text arrives but remains in the input box.
The working fix is:
# relay/herdr_relay.py
run_herdr("agent", "prompt", pane_id, text, remote=remote)
Hi, i got telegram setup but when i use /send and select the agent then send the text , the text arrive in codex but stay in the input box with a break line.
I was able to reproduce this with Herdr 0.7.5 and Codex and confirmed the root cause.
The Telegram bot currently submits
/sendas two low-level pane operations:herdr pane send-text ...herdr pane send-keys ... EnterIn Codex's interactive TUI, the simulated Enter is interpreted as a newline inside the prompt editor instead of submitting the prompt. That is why the text arrives but remains in the input box.
The working fix is: