Skip to content

Commit 78e0732

Browse files
JonJaggerclaude
andauthored
Switch file immediately on click, fire ITE in background (#353)
The file_edit inter-test event was recorded before the editor switched, causing a noticeable delay on every filename click. The UI switch does not depend on the server-assigned index, so it is safe to run immediately while the POST fires in parallel. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e30d3bc commit 78e0732

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

source/app/views/kata/_filenames.erb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,8 @@ $(() => {
125125
$div.addClass('source');
126126
}
127127
$div.click(() => {
128-
cd.saveAnyFileChangesITE(() => {
129-
filenames.select(filename);
130-
});
128+
filenames.select(filename);
129+
cd.saveAnyFileChangesITE(() => {});
131130
});
132131
return $div;
133132
};

0 commit comments

Comments
 (0)