Skip to content

fix: Telegram plugin not working after restart - #685

Merged
ritave merged 1 commit into
mainfrom
ritave/plugin-fix
Mar 20, 2026
Merged

fix: Telegram plugin not working after restart#685
ritave merged 1 commit into
mainfrom
ritave/plugin-fix

Conversation

@ritave

@ritave ritave commented Mar 20, 2026

Copy link
Copy Markdown
Contributor

Summary

initPlugin() in the plugin runs with no agent context, any configuration loaded is from Default agent, so botToken stays nill.

We set the Agent context properly and re-notify all plugins

Changes

  • Behavior change
  • UI change (screenshots below)
  • Refactor / chore
  • Tests
  • Docs

Test Plan

Set up Telegram plugin, check if Plugin works, restart Osaurus, check if Telegram works

Screenshots

If UI updated, add before/after.

Checklist

  • I have read CONTRIBUTING.md
  • I added/updated tests where reasonable
  • I updated docs/README as needed
  • I verified build on macOS with Xcode 16.4+

initPlugin() in the plugin runs with no agent context,
any configuration loaded is from Default agent, so
botToken stays nill.

We set the Agent context properly and re-notify all plugins
@ritave
ritave marked this pull request as ready for review March 20, 2026 14:12

@tpae tpae left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm!

@ritave
ritave merged commit 1134e5f into main Mar 20, 2026
1 check passed
@ritave
ritave deleted the ritave/plugin-fix branch March 24, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants