Skip to content

test(app): retire legacy layout e2e coverage - #49015

Merged
rekram1-node merged 1 commit into
devfrom
app-e2e-fix
Sep 14, 2026
Merged

rekram1-node merged 1 commit into
devfrom
app-e2e-fix

Conversation

@opencode-agent

Copy link
Copy Markdown
Contributor

Summary

  • remove the legacy new-session route test now that the old interface is retired
  • run the timeline comment and diff-summary test against the current layout
  • assert the inline comment users see instead of the retired CommentStrip row

Why

The old interface sunset is September 14, 2026. Once CI crossed that date, settings correctly forced newLayoutDesigns on even when these tests stored false, so both legacy-only assertions failed deterministically on Linux and Windows.

Testing

  • bun typecheck in packages/app
  • bun test src/context/settings.test.ts in packages/app
  • Playwright test discovery for the updated regression file

Requested by: @rekram1-node (Aiden via Slack)

@rekram1-node
rekram1-node merged commit 7f20943 into dev Sep 14, 2026
9 of 10 checks passed
@rekram1-node
rekram1-node deleted the app-e2e-fix branch September 14, 2026 17:08
dallenpyrah pushed a commit to Rika-Labs/opencode that referenced this pull request Sep 16, 2026
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
lihaokun added a commit to lihaokun/opencode that referenced this pull request Sep 16, 2026
Cherry-picked verbatim from upstream 7f20943 (anomalyco#49015).

Not this branch's doing, despite where it surfaced. settings.tsx sets
oldInterfaceSunset to 2026-09-14, and resolveNewLayoutDesigns returns true once
that date passes whatever the stored preference says, so the old layout became
unreachable and the two tests that asserted it started failing on that date.
This branch's first CI run happened to be the same day; dev would fail the same
way today. Upstream fixed it on the day, and taking their change rather than
inventing one keeps the fork from diverging over it.

The legacy new-session spec goes, since the route it covered no longer exists —
app.tsx says the legacy /:dir/session route is replaced by a draft at
/new-session?draftId=…. The timeline spec drops its CommentStrip assertion,
because the new layout renders comments inside the message rather than in a
strip above it, and drops the newLayoutDesigns: false that no longer does
anything.
hugojosefson pushed a commit to hugojosefson/opencode that referenced this pull request Sep 18, 2026
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
rossigee pushed a commit to rossigee/opencode that referenced this pull request Sep 18, 2026
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant