Skip to content

floor pre-migration prune keep to at least 1 - #78536

Closed
aydnOktay wants to merge 2 commits into
NousResearch:mainfrom
aydnOktay:fix/pre-migration-prune-keep-floor
Closed

floor pre-migration prune keep to at least 1#78536
aydnOktay wants to merge 2 commits into
NousResearch:mainfrom
aydnOktay:fix/pre-migration-prune-keep-floor

Conversation

@aydnOktay

Copy link
Copy Markdown
Contributor

Summary

  • Floor _prune_pre_migration_backups keep to at least 1 (invalid values fall back to the default). keep=0 used backups[0:] and deleted every pre-migration-*.zip, including the one just created by create_pre_migration_backup — same safety floor already used by _prune_pre_update_backups.
  • Defensive Telegram bare-adapter getattr for _polling_conflict_recovery_generation.

aydnOktay and others added 2 commits August 4, 2026 17:29
keep=0 made backups[0:] delete every pre-migration-*.zip including the one just created by create_pre_migration_backup. Match _prune_pre_update_backups and floor keep to 1.

Co-authored-by: Cursor <cursoragent@cursor.com>
…adapters

Defensively read _polling_conflict_recovery_generation via getattr so bare/__new__ adapters cannot AttributeError during progress recording.

Co-authored-by: Cursor <cursoragent@cursor.com>
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/cli CLI entry point, hermes_cli/, setup wizard comp/plugins Plugin system and bundled plugins platform/telegram Telegram bot adapter area/install-update Installer, updater, packaging, wheels, doctor sweeper:risk-compatibility Sweeper risk: may break existing users, config, migrations, defaults, or upgrades labels Aug 4, 2026
@aydnOktay

Copy link
Copy Markdown
Contributor Author

Closing to concentrate review on a single linked product bug: #89979.

@aydnOktay aydnOktay closed this Aug 19, 2026
@aydnOktay

Copy link
Copy Markdown
Contributor Author

Closing to concentrate review on a single linked product bug: #89979.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/install-update Installer, updater, packaging, wheels, doctor comp/cli CLI entry point, hermes_cli/, setup wizard comp/plugins Plugin system and bundled plugins P2 Medium — degraded but workaround exists platform/telegram Telegram bot adapter sweeper:risk-compatibility Sweeper risk: may break existing users, config, migrations, defaults, or upgrades type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants