Skip to content

Fix BotFilter to restore types when base exits bot-only state#424

Merged
mame merged 1 commit intomasterfrom
bot-filter-restore
Apr 7, 2026
Merged

Fix BotFilter to restore types when base exits bot-only state#424
mame merged 1 commit intomasterfrom
bot-filter-restore

Conversation

@mame
Copy link
Copy Markdown
Member

@mame mame commented Apr 7, 2026

When a BotFilter's base_vtx transitions from bot-only to having non-bot types, previously suppressed variable types were not restored. This caused variables assigned inside begin/rescue blocks to lose their types when the rescue clause contained raise (bot).

The fix adds type restoration in on_type_added when the base_vtx is no longer bot-only.

When a BotFilter's base_vtx transitions from bot-only to having
non-bot types, previously suppressed variable types were not restored.
This caused variables assigned inside begin/rescue blocks to lose
their types when the rescue clause contained raise (bot).

The fix adds type restoration in on_type_added when the base_vtx
is no longer bot-only.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mame mame merged commit 885d081 into master Apr 7, 2026
12 checks passed
@mame mame deleted the bot-filter-restore branch April 7, 2026 09:17
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