From 20f8d8cc8a6d44c69378639e2c218f0aaac163b0 Mon Sep 17 00:00:00 2001 From: banteg <4562643+banteg@users.noreply.github.com> Date: Thu, 1 Jan 2026 01:30:46 +0400 Subject: [PATCH] chore: set progress edit cadence to 2s --- readme.md | 2 +- specification.md | 2 +- src/takopi/bridge.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index f21b71e..087746b 100644 --- a/readme.md +++ b/readme.md @@ -88,7 +88,7 @@ Send any message to your bot. The bridge will: 1. Send a silent progress message 2. Stream events from `codex exec` -3. Update progress every ~1 second +3. Update progress every 2 seconds 4. Send final response with a resume token line ### Resume a Session diff --git a/specification.md b/specification.md index c42d0de..ceed474 100644 --- a/specification.md +++ b/specification.md @@ -362,7 +362,7 @@ The bridge MUST NOT: ### 7.2 Progress behavior - The bridge SHOULD send an initial progress message quickly (“running…”). -- The bridge MUST edit the progress message no more frequently than `progress_edit_every` (configurable). +- The bridge SHOULD edit the progress message no more frequently than every 2 seconds. - The bridge SHOULD avoid edits if rendered content has not changed. ### 7.3 Resume line inclusion diff --git a/src/takopi/bridge.py b/src/takopi/bridge.py index 48bdd5a..1eacca4 100644 --- a/src/takopi/bridge.py +++ b/src/takopi/bridge.py @@ -101,7 +101,7 @@ async def _send_resume_warning( ) -PROGRESS_EDIT_EVERY_S = 1.0 +PROGRESS_EDIT_EVERY_S = 2.0 async def _send_or_edit_markdown(