Update Telegram reply rendering to use Telegram-safe formatting#115
Draft
punitarani wants to merge 9 commits intomainfrom
Draft
Update Telegram reply rendering to use Telegram-safe formatting#115punitarani wants to merge 9 commits intomainfrom
punitarani wants to merge 9 commits intomainfrom
Conversation
- Introduce a new module for conversation session logic, including debounce handling and message correction detection. - Implement functions for computing debounce deadlines and migrating buffer entries. - Add comprehensive unit tests for the new logic, covering correction message detection and debounce calculations. - Update the conversation session to utilize the new logic for improved message handling and state management. - Enhance documentation to reflect changes in the conversation session workflow and message processing behavior.
- Add `debounce_started_at` attribute to conversation session state for improved tracking. - Set an alarm in the conversation session to manage execution timing. - Include `workflow_started_at` timestamp in agent execution workflow for better monitoring. - Update error handling in the conversation engine to reflect cancellation outcomes more accurately.
- Delete Telegram queue consumer logic and associated message types from the codebase. - Update worker and environment configurations to eliminate references to the Telegram queue. - Refactor imports and type definitions to ensure clean integration without Telegram queue dependencies.
- Update the agent execution workflow to enhance response delivery logic. - Remove streaming-related variables and functionality, simplifying the message handling process. - Adjust the conversation runtime and related types to eliminate streaming references. - Ensure the codebase is cleaner and more maintainable by focusing on direct message delivery.
- Update filtering conditions to include instances with null externalInstanceId. - Refactor the logic to use an OR condition for improved clarity and functionality. - Ensure that the updated logic maintains the intended behavior for instance status checks.
- Introduce `migrateBufferEntries` function to handle legacy message formats and ensure compatibility with new structures. - Update unit tests for `isCorrectionMessage` and add tests for `migrateBufferEntries` to validate migration logic. - Refactor `scheduleDebounce` method to be asynchronous, ensuring proper handling of debounce alarms. - Update documentation for Telegram message handling to reflect changes in response delivery and attachment processing.
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
Testing
bun test packages/channels/src/posthog.test.ts packages/channels/src/telegram/*.test.tsbun run --filter @amby/channels typecheck