Skip to content

Return pending for voice media not yet in DB#141

Merged
thisnick merged 1 commit into
mainfrom
nick_yu_voice_pending
Mar 25, 2026
Merged

Return pending for voice media not yet in DB#141
thisnick merged 1 commit into
mainfrom
nick_yu_voice_pending

Conversation

@thisnick
Copy link
Copy Markdown
Owner

Summary

  • When voice data hasn't been written to media_*.db yet, get_voice_data() was returning type="unsupported", causing the extension's pollMedia to give up immediately
  • Now returns type="pending" instead — the extension already retries on non-unsupported types with missing data, so this works without any extension code changes
  • Added "pending" to the MediaResult type union in shared types

Test plan

  • Send a voice message, verify the extension retries and eventually receives the audio
  • Verify non-voice unsupported types (emoji, unknown) still return "unsupported" and don't trigger retries

🤖 Generated with Claude Code

@thisnick thisnick force-pushed the nick_yu_voice_pending branch from f0bb7e6 to dc2ee7b Compare March 25, 2026 21:34
When voice data hasn't been written to media_*.db yet, return
type="pending" instead of "unsupported". The extension's pollMedia
already retries when data is missing — but short-circuits on
"unsupported". This lets voice messages be retried correctly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@thisnick thisnick force-pushed the nick_yu_voice_pending branch from dc2ee7b to 64107b8 Compare March 25, 2026 21:36
@thisnick thisnick merged commit 5bd2938 into main Mar 25, 2026
4 checks passed
@thisnick thisnick deleted the nick_yu_voice_pending branch March 25, 2026 21:49
@github-actions github-actions Bot mentioned this pull request Mar 25, 2026
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