Codex TOML config can be corrupted by naive string parsing #9
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Medium
writeCodexProfileatcmd/ocgo/main.go:1484-1519edits TOML config usingstrings.Indexon section headers and manual offset arithmetic (no real TOML parser). This will corrupt files containing nested sections like[profiles.ocgo-launch.subsection]or comments with matching section header text.Fix: Use a proper TOML parser (e.g.
BurntSushi/toml) for editing the config file.