Repository navigation
v 0.2.6 - #388
Merged
Merged
v 0.2.6#388
Conversation
…-Community/twiga into feat/213-audio-input
…Tanzania-AI-Community/twiga into feature/add-teacher-image-input
Keep both the model-fallback and vision blocks in the env templates, and restore the blank line black expects in logging_utils.
A text sent while a photo was being read took the agent turn first and was answered against the previous photo. The agent now accepts a `prepare` step that runs while holding the turn, so texts arriving meanwhile wait and are answered together with the interpreted photo. - A failed photo is dropped from the batch; waiting texts are still answered, after the image error is sent. - A photo arriving during another turn is read before it is buffered, so the running turn never answers it unread. - Add MessageProcessor.remove (identity match) and PreparationFailed.
A failed photo kept its "Image not yet interpreted." placeholder in the conversation, so the agent later said it still could not see the image. On any image error the row is now marked "[photo could not be read]" and left out of the agent's history; it stays in the database for audit. Generalise db.update_message_content into update_message, which updates only the given fields and keeps the owner guard and single-row check.
_cleanup_processor ran inside the locked block, so the lock was always held and no processor was ever removed: one stayed in memory per user until restart. Run the cleanup after the lock is released.
Keep the mock-aware WhatsAppClient init from development and add api_version for media downloads.
Stack the audio PR on the image PR so they merge into development one after another without conflicts. Resolved like release/0.2.6: keep both download_image and download_media, accept image and audio messages, and keep development's help text.
Unknown numbers, in-review and approved users never have their message text read, so downloading and transcribing their voice notes wasted a paid call. Transcribe only for onboarding, active and inactive users; others get the unsupported-message marker like any non-text message. Move the download and transcription into _transcribe_audio so the gate stays readable.
feat(audio): add audio input
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
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.
version 0.2.6 batch