aft icon indicating copy to clipboard operation
aft copied to clipboard

Allow edit to skip auto-formatting for one call

Open jjjermiah opened this issue 1 month ago • 2 comments

A one-line AFT edit in a not-prettier-clean TSX file returned Auto-formatted — extensive reflow, producing +6,900/-6,785 changed lines as it switched indentation to tabs and rewrapped the file. Two other files were similarly reflowed. The line edit became difficult to review or attribute. Original case.

v0.63.5 offers format_on_edit configuration but no per-call format override in the edit tool schema. The formatter itself determines the whitespace; AFT's issue is the inability to request a targeted edit without invoking it when formatting is enabled for a workspace. Please add a per-call opt-out, or another narrow way to preserve a file's existing formatting during a small edit. This is a feature request, not a claim that the formatter's output was incorrect.

jjjermiah avatar Nov 01 '26 19:11 jjjermiah

you can ignore this

jjjermiah avatar Nov 02 '26 02:11 jjjermiah

Thanks for raising this, @jjjermiah, and for closing it. For the record, we're keeping formatting as a setting rather than adding a per-call switch to edit. format_on_edit is off by default, and setting it to false in a project's .cortexkit/aft.jsonc turns it off for that project.

aft-alfonso[bot] avatar Nov 17 '26 12:11 aft-alfonso[bot]