Skip to content

Conversation

andmis
Copy link
Contributor

@andmis andmis commented Aug 12, 2025

Summary

  • Save patched config.toml using toml::to_string_pretty for readable indentation

Testing

  • just fmt
  • just fix (fails: let expressions in this position are unstable)
  • cargo test --all-features (fails: let expressions in this position are unstable)

https://chatgpt.com/codex/tasks/task_i_689b66284b38832d9d77f3b9e6fdeb80

Copy link
Collaborator

@dylan-hurd-oai dylan-hurd-oai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just tried this locally and got an error. But agree we should format this better! Can take a crack at our toml_edit usage soon.

Copy link
Collaborator

@bolinfest bolinfest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hold on, please do not do this. I have lots of comments in my config.toml and we should be making the minimal change to the user's file when we update it.

@dylan-hurd-oai
Copy link
Collaborator

@bolinfest if we use toml_edit correctly it should preserve comments, but also agree with making minimal edits

@bolinfest
Copy link
Collaborator

@dylan-hurd-oai I agree, but this does not appear to be using tomledit?

@dylan-hurd-oai
Copy link
Collaborator

yep, that is why i also requested changes!

@bolinfest
Copy link
Collaborator

Sorry, I saw the green checkmark first and just replied!

@dylan-hurd-oai
Copy link
Collaborator

Fair! I missed the green checkmark and also just jumped in to reject 😄

@andmis andmis closed this Aug 14, 2025
@andmis andmis deleted the andrey/codex/save-config.toml-with-indentation branch August 14, 2025 00:38
@github-actions github-actions bot locked and limited conversation to collaborators Aug 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants