Skip to content

P0 Studio: fix live GUI frequency and channel ENABLE delivery; define on-wire acceptance - #249

Open
masarray wants to merge 4 commits into
fix/studio-smart-serial-reconnect-20261019from
fix/studio-live-gui-wire-consistency-20261019
Open

masarray wants to merge 4 commits into
fix/studio-smart-serial-reconnect-20261019from
fix/studio-live-gui-wire-consistency-20261019

Conversation

@masarray

Copy link
Copy Markdown
Owner

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.md documenting 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T04:11:19.931828Z 1f96168 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +292 to +293
if (liveNow && matrix.session.requestSetEnabled(signalRow.sid, checked))
matrix.controller.pendingApply = false

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

Comment on lines +1045 to +1049
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))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant