Skip to content

fix(copilot): show the value input on prefill value conflicts - #2359

Merged
abrichr merged 4 commits into
mainfrom
claude/quoting-demo-engine
Nov 21, 2026
Merged

abrichr merged 4 commits into
mainfrom
claude/quoting-demo-engine

Conversation

@abrichr

@abrichr abrichr commented Nov 20, 2026

Copy link
Copy Markdown
Member

The reconciler offers provide_value on prefill_value_conflict halts, but the copilot side panel rendered no input on any conflict card. "Submit Value & Continue" had nothing to read, so it always failed.

This change renders the operator input for every halt except entity-row conflicts, where a typed value does not apply.

Testing:

  • tests/test_extension_copilot_sidepanel.py passes (5 tests).
  • With sidepanel.js from origin/main, the new assertion fails: the conflict card has no operator-input.

The reconciler offers provide_value on prefill_value_conflict halts, but the
side panel rendered no input for any conflict card, so Submit Value & Continue
always failed. Render the input for every halt except entity-row conflicts.
@abrichr

abrichr commented Nov 20, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Grok (independent reviewer)
Reviewed-Head: e31ec29

Review of the copilot side-panel input fix (7b03388; the head is a clean merge of origin/main 5e37bf17 with no manual resolutions). I am not the author (Claude quoting-demo agent). Head is unchanged from inbox 7053554050. I will not merge.

The reconciler already offers provide_value on prefill_value_conflict, but renderHaltCard used to hide the operator input on every conflict (!isConflict). Submit Value & Continue therefore always failed those cards (empty input → "Select or enter a value before submitting."). The condition is now: show the input for ungrounded_required_field, or for any halt that offers provide_value except prefill_entity_conflict. That is the right split: a value conflict has a single value to enter; an entity-row conflict does not. The existing entity-conflict fixture still does not offer provide_value and still has no input. The value-conflict test now offers provide_value and asserts one input[data-role="operator-input"]. Values are rendered with createElement / textContent, not innerHTML.

The two-file delta contains no secrets. gitleaks is red on this head (run 44839821453) with no reviewable finding list in the log; I am not treating that as a product defect in this change. Please confirm it is not a new unreviewed leak before merge.

CI was still running when I posted; protected-path evidence will want this exact-head review.

@abrichr

abrichr commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Grok
Reviewed-Head: 0945859

Delta re-review after my APPROVE at e31ec290f7318cb39cf9f09ffd79ebd79cee575a. The only first-parent commits since that head are merges of current main (b4567485c, then 0945859c3). Author is still GitHub abrichr, not Grok. I will not merge.

The unique diff versus main is unchanged: two files, the same copilot side-panel fix.

  • sidepanel.js still shows the operator input when allowedActions includes provide_value, except on prefill_entity_conflict (entity-row conflicts still get no input).
  • The Playwright test still asserts one input[data-role="operator-input"] on the scalar value-conflict card and still lists PROVIDE_VALUE among that halt's actions.

I saw no conflict markers and no accidental edit of the side-panel fix in the main merges.

What I ran

  • Confirmed the PR is OPEN, not draft, head still 0945859c3b20d9a93fc4f458de563000177e7bbf. No STOP/HOLD in Scrubbing and Fix Atomacos #211 that withdraws this review. No Grok verdict at this head.
  • git diff origin/main...HEAD is still only packages/flow/chrome_extension/sidepanel.js and packages/flow/tests/test_extension_copilot_sidepanel.py (10 insertions, 1 deletion).
  • Re-read the input-visibility condition and the value-conflict assertion.

Review only; I am not merging.

@abrichr
abrichr merged commit 3c0f493 into main Nov 21, 2026
53 of 54 checks passed
@abrichr
abrichr deleted the claude/quoting-demo-engine branch November 21, 2026 08:56
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