Skip to content

Craft Anything: understand how any software works, and craft your own.

Rust

Pick the coding agents' tab before testing Add another (#732)

BFlatfb7ac863a31f
diff --git a/crates/ui-egui/tests/smoke.rs b/crates/ui-egui/tests/smoke.rs
index b2ff23f9..1a46e39e 100644
--- a/crates/ui-egui/tests/smoke.rs
+++ b/crates/ui-egui/tests/smoke.rs
@@ -1236,7 +1236,9 @@ fn claude_codes_account_folder_is_set_in_settings() {
// Emptied, it's the usual folder again.
h.state_mut().set_agent_folder("Claude Code", Some(String::new()));
assert!(wait(&mut h, |a| chosen(a).is_none()));
- // Added already, so it's offered again under the next free name.
+ // Added already, so it's offered again under the next free name, on the coding agents' tab.
+ h.state_mut().state.detect_tab = Some(craft_anything_ui_egui::detect_tabs::DetectTab::Harnesses);
+ h.run_steps(2);
h.get_by_label("Add another").click();
assert!(wait(&mut h, |a| a.backends.iter().any(|b| b.name == "Claude Code 2" && b.model == "claude-code")));
}
diff --git a/docs/pitfalls.md b/docs/pitfalls.md
index 5ae65657..7779ad0f 100644
--- a/docs/pitfalls.md
+++ b/docs/pitfalls.md
@@ -45,6 +45,9 @@ added an app the new rule rejected; both were green on their own branch.
And again with a new catalog: #555 added "Pausing…" to every catalog there was, and #486 (Russian)
merged after it without it. A new language and a new UI string merged together need the string
in the new catalog too.
+ And with a layout change: #687 moved coding agents onto their own tab of what Detect found, and
+ #664, merged next, tested a button on that list without picking the tab. Checking that two PRs
+ merge cleanly isn't checking that their tests pass together: run the UI tests on the merge.
**A dependency change merged without its lockfile.** Changes were staged with
`git add -A crates apps docs`, which leaves out the root `Cargo.lock`, so a new dependency reached