fix(ci): expect commit fixOnCommit in default settings and format the execution-output fixture (#6572)

#6540 added vcs.commit.fixOnCommit, so the defaults JSON shape test now lists it. #5131 left the execution-output plugin fixture unformatted, which failed the plugin crates' cargo fmt --check.
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-11-28 03:38:37 +08:00
1 джерело 4e82599c49
коміт e49c634064
2 files changed
+5 -10

No files matched your search

+4 -10
Переглянути файл
@@ -16,12 +16,8 @@ impl Plugin for ExecutionOutput {
_ => None,
};
let debug = parts.next() == Some("debug");
host::start_run_with_options(
config,
&["extra".into()],
&RunStartOptions { debug, output_mode: mode },
)
.map(Some)
host::start_run_with_options(config, &["extra".into()], &RunStartOptions { debug, output_mode: mode })
.map(Some)
}
"start-legacy" => host::start_run(arg.unwrap_or("pty-default"), &["legacy".into()], false).map(Some),
"events" => host::storage::get("events"),
@@ -30,10 +26,8 @@ impl Plugin for ExecutionOutput {
}
fn handle_events(&mut self, events: &[Event], _: &Invocation) {
let mut received: Vec<serde_json::Value> = host::storage::get("events")
.unwrap()
.and_then(|s| serde_json::from_str(&s).ok())
.unwrap_or_default();
let mut received: Vec<serde_json::Value> =
host::storage::get("events").unwrap().and_then(|s| serde_json::from_str(&s).ok()).unwrap_or_default();
for event in events {
if let Event::Other { kind, data } = event {
received.push(serde_json::json!({"kind": kind, "data": data}));
+1
Переглянути файл
@@ -1000,6 +1000,7 @@ mod tests {
"reformat": false,
"optimizeImports": false,
"cleanup": false,
"fixOnCommit": false,
"blankLineAfterSubject": true,
"limitSubject": true,
"subjectLimit": 72,