AI Flow
Public Made by Adomby adom
Adom's AI Flow: a tool to help the AI follow all of the steps it takes to build a board.
Step clips film another project's PCB editor when the run's board is not open (camera_window falls back to the first editor)
Version: adom-aiflow 0.2.51 (the fallback is unchanged in 0.2.55: crates/aiflow-bridge/src/eda.rs camera_window, None => matching.or_else(|| pcbs.first()...)), KiCad 10.0.4 on Windows, KiCad Bridge 1.0.103.
What happened. On a desktop with another project's PCB editor open (a different board, in active use by another AI thread), step components and step models of a new run started their clips on that editor, because the run's own board was not open yet. The step output only said clip components-1 recording (window 7472288 ...); nothing said the window shows another board. The clip (someone else's board, nets being highlighted) was pushed to the run's clips page, and capture reject keeps it there "as evidence".
What was true. The run knew its board (remoteBoard = .../led-strip-500/led-strip-500.kicad_pcb); no open editor showed it. The camera should have fallen back to Hydrogen's dashboard or the AI's window, as it does when no tool window is open.
Ask.
- With the run's board known and not open, never film another board's PCB editor (drop the
pcbs.first()fallback; match the stem as a whole name in the title). - When a step's clip starts on a KiCad editor, print its title, so the AI can see a wrong window at once.
capture rejectfor privacy (wrong project filmed) should be able to take the clip off the page, not keep it as evidence.
A patch from an earlier run (against 0.2.43; names_board, run_kicad_stem, pcb_editor_of(info, stem), tests) is attached; the same change still applies in spirit to 0.2.55.