Commit 79d4b7d
LittleCoinCoin
fix(backup): preserve original filename in backup creation
Changed backup filename generation to preserve the original config filename
(e.g., config.toml, mcp.json) instead of hardcoding 'mcp.json' prefix.
This ensures Codex TOML backups are correctly named config.toml.{hostname}.{timestamp}.
- Updated create_backup() to use config_path.name instead of hardcoded prefix
- Updated BackupInfo.backup_name property to return actual filename
- Fixes backup restoration and listing for non-JSON config formats1 parent 257fe80 commit 79d4b7d
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
255 | 257 | | |
256 | 258 | | |
257 | 259 | | |
| 260 | + | |
258 | 261 | | |
259 | | - | |
| 262 | + | |
| 263 | + | |
260 | 264 | | |
261 | 265 | | |
262 | 266 | | |
| |||
0 commit comments