Skip to content

Prompt only captures first message when other person sends multiple in a row #1

@NotYuSheng

Description

@NotYuSheng

Problem

In format_conversations (scripts/telegram_extract.py), when the other person sends several messages consecutively before you reply, only the first is used as the prompt. The rest are silently skipped because i = j jumps past them.

Example

Other: "hey"
Other: "are you free tonight?"   ← skipped
Other: "let me know asap"        ← skipped
You:   "yeah sure"

Only "hey" becomes the prompt, losing context.

Expected behavior

Consecutive messages from the same sender should be concatenated or treated as a single prompt before extracting the response.

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