feat(gateway): /stream cosmetic tool progress for Pi - #184
Open
AuYahyire wants to merge 4 commits into
Open
Conversation
Toggle per conversation sends Hermes-style tool breadcrumbs from Pi's JSONL events without recording them in canonical history or changing LLM prompts. Co-authored-by: Cursor <cursoragent@cursor.com>
Menu taps send /stream@BotName; normalize before matching so commands still work. Co-authored-by: Cursor <cursoragent@cursor.com>
…nces Accumulate tool progress into a single editable bubble (Shell + code fence) to avoid rate-limit stalls from many sends, and keep final replies unblocked. Co-authored-by: Cursor <cursoragent@cursor.com>
Progress edits need message ids; ordinary delivery must keep working with API mocks and responses that only return ok=true. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/stream//stream on|offto show cosmetic Pi tool progress in Telegram (typing stays; progress is not stored in canonical history)./stream@BotName.Why
Long Pi tool loops look idle in Telegram if only typing is shown. Operators want optional live breadcrumbs without putting tool noise into durable history or changing LLM prompts.
Test plan
cargo fmt --all --checkcargo clippy --locked --all-targets -- -D warningscargo build --lockedcargo test --lockedcargo test stream_prefs/stream on, send a prompt that uses bash → one editable progress message, then final reply/stream on/newRisks
send_plainstays independent ofmessage_idparsing so ordinary delivery does not break when the API body is onlyok: true.Related issue
None