Files
telemt/src
Mirotin Artem f1f46fac42 Fix config API corrupting nested sub-tables on save
render_top_level_section serialized a section in isolation, so nested sub-tables ([general.links], [general.modes]) were emitted as bare [links]/[modes] top-level headers and duplicated on load. Serialize the section inside a wrapper keyed by its name to keep dotted headers.

find_toml_table_bounds only spanned the first contiguous block, leaving scattered sub-tables behind as duplicates on repeated saves. Replace it with find_all_table_blocks and drop every block belonging to the section during upsert.

show_link is a legacy top-level scalar/array, not a [table]; the upsert machinery appended a bare key at EOF (landing inside the previous table) and duplicated it on repeat. Remove it from EDITABLE_SECTIONS; the editable general.links.show sub-table covers the case.

Add tests for dotted sub-tables, idempotent saves, non-contiguous layouts, show_link rejection, and integer/float/string coercion of public_port.
2026-06-15 09:49:47 +03:00
..
2026-03-21 15:45:29 +03:00
2026-04-17 11:06:42 +03:00
2026-06-14 19:59:06 +03:00
2026-04-04 11:28:32 +03:00
2026-06-02 08:17:56 +03:00
2026-03-21 15:45:29 +03:00
2026-06-01 19:50:26 +03:00
2026-04-17 19:08:57 +03:00
2026-04-05 17:23:40 +03:00
2026-06-11 16:43:24 +03:00
2026-03-21 15:45:29 +03:00