Repository navigation
P0 Studio: fix live GUI frequency and channel ENABLE delivery; define on-wire acceptance - #249
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1f9616873f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (liveNow && matrix.session.requestSetEnabled(signalRow.sid, checked)) | ||
| matrix.controller.pendingApply = false |
There was a problem hiding this comment.
Keep edits pending until worker admission succeeds
When the bounded worker queue is full, requestSetEnabled() still returns true because DeviceController::sendCommandBatch() reports only whether QMetaObject::invokeMethod() accepted the callback; DeviceIoWorker can reject the command later in enqueueCommandsInternal(). Clearing pendingApply here therefore labels an ENABLE edit as applied even though it never reached the board; the new frequency path has the same issue. Retain the pending state until worker admission or positive device evidence is reported.
AGENTS.md reference: AGENTS.md:L112-L116
Useful? React with 👍 / 👎.
| const liveNow = workflowBar.injectionRunning && | ||
| workflowBar.session && workflowBar.session.liveControlReady && | ||
| !root.pendingApply | ||
| root.markScenarioDirty() | ||
| if (workflowBar.session && workflowBar.session.liveControlReady && !root.pendingApply) | ||
| workflowBar.session.requestSetFrequency(value) | ||
| if (liveNow && workflowBar.session.requestSetFrequency(value)) |
There was a problem hiding this comment.
Debounce live frequency edits before transmission
During a running injection, onTextEdited fires for every valid intermediate value, so replacing 50 by typing 60 can queue FREQ 6 before FREQ 60. The worker does not coalesce these commands, meaning the board can briefly generate the unintended intermediate frequency and the rapid events can also consume queue capacity. Send only the committed value from editingFinished, or debounce and coalesce the edits as the signal fields do.
AGENTS.md reference: AGENTS.md:L126-L126
Useful? React with 👍 / 👎.
Field end-to-end audit identified two confirmed GUI-to-board live-update bugs: both checkbox ENABLE and frequency text edit set pendingApply=true before checking !pendingApply, so edits could be shown in GUI but suppressed on the wire. This PR captures prior live eligibility, enqueues updates on RUNNING only, and retains pending draft when queueing fails. Adds operator structural regression and
docs/STUDIO_BOARD_WIRE_RELIABILITY_AUDIT_2026-10-19.mddocumenting verified code paths, remaining atomicity/readback risks, physical 4I+4V/PCAP fidelity acceptance, 4000fps continuity and <=10s genuine PTP AUTO lock. No firmware changes and no forced smpSynch. Await exact-head CI, then field captures; do not merge/claim physical qualification yet.