GeezerVison is showing github.com — fix(session-ui): remove agent finish checkmark (#59646) · abn/opencode@320445a
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: packages/app/e2e/regression/timeline-stream.spec.ts +1-18Lines changed: 1 addition & 18 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -633,24 +633,7 @@ test("shows a background subagent's outcome as its own row where it finished", a | 633 | 633 | ]) | 634 | 634 | await expect(notice).toHaveAttribute("data-outcome", "completed") | 635 | 635 |
| 636 | | - // The outcome icon starts at the column edge like the subagent card, in a 16px box centered on the text line and | 637 | | - // clear of the label; the exact gap is styling. | 638 | | - await expect | 639 | | - .poll(async () => { | 640 | | - const [card, icon, label] = await Promise.all([ | 641 | | - page.locator('[data-component="task-tool-card"]').boundingBox(), | 642 | | - notice.locator('[data-slot="icon-svg"]').boundingBox(), | 643 | | - notice.locator(":scope > bdi").boundingBox(), | 644 | | - ]) | 645 | | - | 646 | | - return { | 647 | | - inset: icon!.x - card!.x, | 648 | | - size: [icon!.width, icon!.height], | 649 | | - separated: label!.x - icon!.x - icon!.width > 0, | 650 | | - centered: Math.abs(icon!.y + icon!.height / 2 - (label!.y + label!.height / 2)) <= 0.5, | 651 | | - } | 652 | | - }) | 653 | | - .toEqual({ inset: 0, size: [16, 16], separated: true, centered: true }) | | 636 | + await expect(notice.locator('[data-slot="icon-svg"]')).toHaveCount(0) | 654 | 637 | await notice.click() | 655 | 638 | await expect(page).toHaveURL(new RegExp(`/session/${childID}$`)) | 656 | 639 | }) | |
Collapse file Copy file name to clipboardExpand all lines: packages/session-ui/src/timeline/session-timeline-row.tsx +1-3Lines changed: 1 addition & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -566,7 +566,7 @@ export function createSessionTimelineRowRenderer(input: { | 566 | 566 | label: i18n.t(outcomeNoticeKey(outcome), { actor }), | 567 | 567 | data: message.description, | 568 | 568 | outcome, | 569 | | - icon: source === "shell" && outcome === "completed" ? undefined : outcomeNoticeIcon(outcome), | | 569 | + icon: outcomeNoticeIcon(outcome), | 570 | 570 | } | 571 | 571 | } | 572 | 572 |
| @@ -1282,8 +1282,6 @@ function outcomeNoticeIcon(outcome: Outcome) { | 1282 | 1282 | if (outcome === "error") return "warning" | 1283 | 1283 |
| 1284 | 1284 | if (outcome === "cancelled") return "circle-ban-sign" | 1285 | | - | 1286 | | - return "check" | 1287 | 1285 | } | 1288 | 1286 |
| 1289 | 1287 | function outcomeNoticeColor(outcome: Outcome | undefined) { | |
|