Skip to content

fix(agent): bash Telegram edit-in-place + circuit breaker backoff#328

Merged
gHashTag merged 2 commits intomainfrom
fix/bash-telegram-edit-in-place
Mar 12, 2026
Merged

fix(agent): bash Telegram edit-in-place + circuit breaker backoff#328
gHashTag merged 2 commits intomainfrom
fix/bash-telegram-edit-in-place

Conversation

@gHashTag
Copy link
Copy Markdown
Owner

Summary

  • Telegram zero-spam: all updates via editMessageText, no new sendMessage calls
  • Card with timeline + progress bar: [####....] 4/8
  • Circuit breaker backoff: 30s → 60s → 120s (was 5s flat)
  • Exit 0 on permanent failure (prevents Railway respawn loop like SEC-DELTA: Add rate limiting to cloud monitor HTTP server #312)
  • Disabled TELEGRAM_STREAM (was sending new messages every 5s)

Why now

Zig entrypoint (PR #326) is merged but needs Docker rebuild. This patches the bash entrypoint that agents are currently running. Immediate effect on next agent spawn.

Test plan

🤖 Generated with Claude Code

Antigravity Agent and others added 2 commits March 12, 2026 15:53
…entrypoint

Three changes to deploy/agent-entrypoint.sh:

1. Telegram zero-spam: removed send_telegram() from report_status(),
   all updates now go through update_telegram_dashboard() (edit-in-place).
   Card shows timeline with timestamps + progress bar.

2. Circuit breaker exponential backoff: 30s → 60s → 120s (was 5s flat).
   On permanent failure: exit 0 (prevents Railway respawn loop).
   Comments on issue with CIRCUIT BREAKER TRIPPED.

3. Disabled TELEGRAM_STREAM (was sending new messages every 5s).

This is the quick-deploy fix. Full Zig entrypoint (PR #326) activates
on next Docker image rebuild.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Replace 7 send_telegram calls with update_telegram_dashboard (edit-in-place)
- Dockerfile: bash entrypoint (Zig entrypoint pending #325) + gh/jq deps
- Each agent = 1 Telegram message (edited), not 8 new messages

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gHashTag gHashTag merged commit dd99f03 into main Mar 12, 2026
@gHashTag gHashTag deleted the fix/bash-telegram-edit-in-place branch March 12, 2026 08:53
gHashTag added a commit that referenced this pull request Mar 18, 2026
fix(agent): bash Telegram edit-in-place + circuit breaker backoff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant