GeezerVison is showing github.com — test(acp): keep OMP elicitation cases that guard distinct behavior · pingdotgg/t3code@122d1e0
File treeExpand file treeCollapse file tree Open diff view settings apps/server/src/orchestration-v2/Adapters
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: apps/server/src/orchestration-v2/Adapters/AcpAdapterV2.test.ts +4-18Lines changed: 4 additions & 18 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -1554,7 +1554,7 @@ describe("AcpAdapterV2", () => { | 1554 | 1554 | ], | 1555 | 1555 | })); | 1556 | 1556 |
| 1557 | | - // regression: #20417 Droid AskUser answers were sent as a cancel | | 1557 | + // regression: #20417 Droid answers were sent as a cancel; #23505 OMP header and question were swapped | 1558 | 1558 | it.live.each([ | 1559 | 1559 | ...[ | 1560 | 1560 | { scenario: "OMP selected option", answers: { q0: "Approve" }, content: { q0: "Approve" } }, | @@ -1563,18 +1563,6 @@ describe("AcpAdapterV2", () => { | 1563 | 1563 | answers: { q0: "Please wait" }, | 1564 | 1564 | content: { q0__other: "Please wait" }, | 1565 | 1565 | }, | 1566 | | - { scenario: "OMP cancellation", answers: undefined, content: undefined }, | 1567 | | - { | 1568 | | - scenario: "OMP missing header", | 1569 | | - answers: { q0: "Hold" }, | 1570 | | - content: { q0: "Hold" }, | 1571 | | - withoutHeader: true, | 1572 | | - }, | 1573 | | - { | 1574 | | - scenario: "OMP selected label with attachment references", | 1575 | | - answers: { q0: 'Approve\n\nAttached file "notes.txt": "/server/notes.txt"' }, | 1576 | | - content: { q0__other: 'Approve\n\nAttached file "notes.txt": "/server/notes.txt"' }, | 1577 | | - }, | 1578 | 1566 | ].map((fixture) => ({ | 1579 | 1567 | ...fixture, | 1580 | 1568 | settings: OMP_SETTINGS, | @@ -1584,7 +1572,7 @@ describe("AcpAdapterV2", () => { | 1584 | 1572 | q0: { | 1585 | 1573 | type: "string", | 1586 | 1574 | title: "Approve this exact code-only commit?", | 1587 | | - ...("withoutHeader" in fixture ? {} : { description: "Safety-hook false positive" }), | | 1575 | + description: "Safety-hook false positive", | 1588 | 1576 | oneOf: [ | 1589 | 1577 | { const: "Approve", title: "Approve", description: "Commit the verified fix." }, | 1590 | 1578 | { const: "Hold", title: "Hold" }, | @@ -1597,17 +1585,15 @@ describe("AcpAdapterV2", () => { | 1597 | 1585 | questions: [ | 1598 | 1586 | { | 1599 | 1587 | id: "q0", | 1600 | | - header: "withoutHeader" in fixture ? "Question 1" : "Safety-hook false positive", | | 1588 | + header: "Safety-hook false positive", | 1601 | 1589 | question: "Approve this exact code-only commit?", | 1602 | 1590 | options: [ | 1603 | 1591 | { label: "Approve", value: "Approve", description: "Commit the verified fix." }, | 1604 | 1592 | { label: "Hold", value: "Hold", description: "Hold" }, | 1605 | 1593 | ], | 1606 | 1594 | }, | 1607 | 1595 | ], | 1608 | | - result: fixture.content | 1609 | | - ? { action: "accept", content: fixture.content } | 1610 | | - : { action: "cancel" }, | | 1596 | + result: { action: "accept", content: fixture.content }, | 1611 | 1597 | })), | 1612 | 1598 | { | 1613 | 1599 | scenario: "OMP unrelated form uses generic mapping", | |
|