Skip to content

Make "..." placeholder first message optional in post+edit fallback #140

@vincenzodomina

Description

@vincenzodomina

Problem Statement

On post+edit fallback platforms (notably Telegram), the initial placeholder message can disrupt message ordering when bots emit tool/debug messages alongside a streamed response. The finished message currently shows up above the tool call messages.

I use my own injected messages for showing tool call status and args.

Also, the initial "..." placeholder looks redundant when using the typing indicator with Telegram (Adding that would be another issue actually)

Proposed Solution

Add a flag to disable this default behavior e.g.
this._fallbackStreamingPlaceholderText = config.fallbackStreamingPlaceholderText ?? "...";
or preferably remove a placeholder message completely in favor of using the Telegram typing indicator API:
await telegramApi("sendChatAction", { chat_id: chatId, action: "typing" })

Deleting it later i tried, that looks weird in the Telegram chat itself, it does its animations for that action

Alternatives Considered

No response

Use Case

Priority

None

Contribution

  • I am willing to help implement this feature

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions