Commit 06eb53a
committed
fix(backup): support different config filenames in backup listing
Root cause: Backup listing pattern was hardcoded to 'mcp.json.{hostname}.*',
but different hosts use different config filenames (Gemini uses settings.json,
Codex uses config.toml). When backups were created with format
'{original_filename}.{hostname}.{timestamp}', they couldn't be found by
list_backups() method, leading to 'No backups found' error despite backups
being created successfully.
Solution: Updated backup listing pattern from hardcoded 'mcp.json.{hostname}.*'
to flexible '*.{hostname}.*' pattern that matches any config filename. Also
updated test expectations to reflect original filename preservation.
Fixes #2 of 2: Backup listing not finding settings.json backups
# Conflicts:
# tests/test_mcp_host_config_backup.py1 parent 5ccb7f9 commit 06eb53a
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
358 | | - | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
359 | 361 | | |
360 | | - | |
361 | | - | |
| 362 | + | |
| 363 | + | |
362 | 364 | | |
363 | 365 | | |
364 | 366 | | |
| |||
0 commit comments