Skip to content

fix(telegram): cap startup API calls#2419

Merged
alekspetrov merged 1 commit intoqf-studio:mainfrom
myagizmaktav:upstream-telegram-startup-timeout
Apr 29, 2026
Merged

fix(telegram): cap startup API calls#2419
alekspetrov merged 1 commit intoqf-studio:mainfrom
myagizmaktav:upstream-telegram-startup-timeout

Conversation

@myagizmaktav
Copy link
Copy Markdown
Contributor

Summary

  • add a short timeout around Telegram singleton and initial getMe() startup calls
  • prevent pilot start --telegram from hanging indefinitely when Telegram is slow or unreachable
  • add a regression test with a delayed startup API response

Verification

  • go test ./internal/adapters/telegram/...

Closes #2417

Copy link
Copy Markdown
Collaborator

@alekspetrov alekspetrov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Surgical 10s startup timeout on CheckSingleton/getMe with regression test.

@alekspetrov alekspetrov merged commit 0424b0f into qf-studio:main Apr 29, 2026
4 checks passed
@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

Telegram startup can hang indefinitely on singleton/getMe calls

3 participants