Repository navigation
Conversation
v2 agents got only the audio of a voice message, with "Review the attached voice message.", and dropped the server's transcript edit as already seen. Every replay or edit also downloaded the audio again. A voice message with no text is now held in a ledger record (v2_voice_holds) until the transcript edit or a deadline of 15 s plus half its length, at most 90 s: - transcript first: it goes out as the message's text, no audio - deadline first: the audio goes out as before, and a transcript that arrives within 10 minutes follows as its own input - restart: holds resume, look the message up again, and are never reported as "restarted before this ran" - /stop and the apps' Stop drop the thread's holds Audio over 600 s is never held. The ledger records a message before any download, so replays and edits never fetch media again. "Working" shows while a message is held.
This branch has not been deployed
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.
Problem
Agents on bridge v2 (
cli/src/bridge/v2/) got only the audio of a voice message, with the text "Review the attached voice message." Most agents can't listen to audio, so a voice message effectively arrived empty. The server does transcribe voice sent without text, but it delivers the transcript a few seconds later as an edit of the message. v2 dropped that edit as already seen. It also downloaded the audio before its dedupe check, so every replay or edit downloaded it again.This fixes it in the bridge only. There are no protocol or server changes.
What changed
Voice message (0:42), transcribed by Inline:followed by the transcript, and the audio is never downloaded.Transcript of the voice message you received earlier (message N), …./stopand the apps' Stop button drop the thread's holds, including pending late follow-ups. The Stop button only does this for someone allowed to stop the work.Code:
cli/src/bridge/v2/voice.rs(new), plus the wiring inruntime.rsand the table inledger.rs.New local ledger table:
v2_voice_holdsThis is a SQLite table in the bridge's local ledger, not a server database migration. It's additive (
CREATE TABLE IF NOT EXISTS):Behavior choices
Tests
New tests in the style of the existing v2 fault tests (real runtime, work actor, and SQLite ledger, with a scripted session). They cover:
/stopwhile holdingPlus unit tests for the deadline, the transcript/caption classification, the text formats, reading a looked-up message, and the ledger table surviving a reopen.
provider_probe_terminal(claude_preflight_is_noninteractive_with_and_without_a_controlling_terminal) fails with "Claude is not authenticated" because Claude isn't logged in on the machine that ran these tests. It fails the same way onmainwithout this change.cargo fmt --all -- --checkalso flagscrates/client/src/sdk_backend/bot_settings.rs, which this PR doesn't touch. It is already unformatted onmain.Not covered by tests
GetMessagescall after a restart. Tests replace that one call with a canned message. The parsing of the result is shared with the real path and tested. The call itself needs a server, like the ignored v2 e2e tests.How to test manually
cargo build -p inline-cli --release, theninline bridge stop.RUST_LOG=inline::bridge::v2=debug ./target/release/inline bridge run --config <bridge config.json>. The path is in the--configargument of the bridge's launchd agent.voice held for its transcript. A few seconds later the agent should answer the transcript.inline bridge startto return to the normal service.🤖 Generated with Claude Code