Skip to content

Telegram bot not sending enter to codex #17

Description

@xtreme2020

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:

  1. herdr pane send-text ...
  2. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions