GeezerVison is showing github.com — test(app): update timeline e2e tests for always-background subagents by opencodejr[bot] · Pull Request #63430 · anomalyco/opencode
Conversation
What failed
check-test / e2e (linux|windows, app-2) failed on dev in these tests:
timeline-geometry.spec.ts › with a pointer / with touch › scrolls the timeline behind the composer region… (session-background-hint-row never appears)
timeline-stream.spec.ts › background shortcut › counts a backgrounded subagent… (expects Stale task (background))
timeline-stream.spec.ts › background shortcut › separates blocking and already-backgrounded work into two rows (the background hint button never appears)
timeline-stream.spec.ts › background shortcut › holds a revealed call … just under its stuck group header (×3, timing out on the 1 subagent pill)
On Windows, the extra 60-second timeouts and retries also pushed the job past its 15-minute limit.
Root cause
#63382 made subagents always run in the background:
- A running
subagent call is no longer blocking work, so it no longer shows the "move running work to the background" hint.
- Subagent cards dropped the
(background) subtitle suffix.
- A subagent call without a child session no longer counts in the activity pill.
#63391 then removed the pill's "reveal a starting subagent call in the timeline" path (onReveal / setRevealPart). These e2e tests still asserted the old behaviour.
Fix (tests only)
- geometry test: the fixture now has a backgrounded subagent, which keeps the
1 subagent pill, plus a running shell, which shows the hint row. The geometry expectations are unchanged.
- stale-call test: expects the card text
Stale task without the removed suffix. The pill-count checks are unchanged.
- two-rows test: the blocking work is now a running shell. The former foreground subagent is now a subagent call that still reads running, which counts as background work. Suffix checks are removed and the menu rows follow session order. The interrupt, shell-panel and kill checks are unchanged.
- Deleted the three
holds a revealed call … under its stuck group header tests. They clicked a pill row that refactor(app): remove leftover foreground subagent UI #63391 removed along with its code path. The scroll-to-call logic they covered is still in the timeline code, but nothing in the app triggers it any more. If e2e coverage is wanted, it needs a new way in.
Verification
- Before:
bunx playwright test e2e/regression/timeline-stream.spec.ts e2e/regression/timeline-geometry.spec.ts --project chromium -g "background shortcut|scrolls the timeline behind" → 7 failed, 6 passed, the same failures as CI.
- After: the full
timeline-stream, timeline-geometry and subagent-child-navigation specs → 89 passed, 1 failed. The failure is renders current protocol notices in CLI order; it fails the same way without this change and isn't among the CI failures.
prettier --check passes. The e2e typecheck reports no new errors in the changed lines.
CI failure: check-test / e2e (windows, app-2) / [chromium] e2e\regression\timeline-geometry.spec.ts › with a pointer › scrolls the timeline behind the composer region, fading at the card, and keeps its end above the region, check-test / e2e (windows, app-2) / [chromium] e2e\regression\timeline-stream.spec.ts › background shortcut › counts a backgrounded subagent while its session runs, not while its call still reads running, check-test / e2e (windows, app-2) / [chromium] e2e\regression\timeline-geometry.spec.ts › with touch › scrolls the timeline behind the composer region, fading at the card, and keeps its end above the region, check-test / e2e (windows, app-2) / [chromium] e2e\regression\timeline-stream.spec.ts › background shortcut › separates blocking and already-backgrounded work into two rows, check-test / e2e (windows, app-2) / [chromium] e2e\regression\timeline-stream.spec.ts › background shortcut › holds a revealed call from far below just under its stuck group header, check-test / e2e (linux, app-2) / [chromium] e2e/regression/timeline-geometry.spec.ts › with a pointer › scrolls the timeline behind the composer region, fading at the card, and keeps its end above the region, check-test / e2e (linux, app-2) / [chromium] e2e/regression/timeline-geometry.spec.ts › with touch › scrolls the timeline behind the composer region, fading at the card, and keeps its end above the region, check-test / e2e (linux, app-2) / [chromium] e2e/regression/timeline-stream.spec.ts › background shortcut › counts a backgrounded subagent while its session runs, not while its call still reads running, check-test / e2e (linux, app-2) / [chromium] e2e/regression/timeline-stream.spec.ts › background shortcut › separates blocking and already-backgrounded work into two rows, check-test / e2e (linux, app-2) / [chromium] e2e/regression/timeline-stream.spec.ts › background shortcut › holds a revealed call from far below just under its stuck group header, check-test / e2e (linux, app-2) / [chromium] e2e/regression/timeline-stream.spec.ts › background shortcut › holds a revealed call that opens the last row just under its stuck group header failed 3 runs in a row on dev.
Opened by the CI fix job: it does not merge or push to dev.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Subagents no longer block the run, carry a "(background)" subtitle, or
reveal their starting call from the activity pill. Show the background
hint with a running shell instead, drop the removed subtitle, follow the
session order in the activity menu, and remove the tests for the deleted
pill reveal path.
|
This PR doesn't fully meet our contributing guidelines and PR template.
What needs to be fixed:
- PR description is missing required template sections. Please use the PR template.
Please edit this PR description to address the above within 72 hours, or it will be automatically closed.
If you believe this was flagged incorrectly, please let a maintainer know.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The updated tests match the behaviour after #63382 and #63391, and I found no problems in them. On the base branch, the selected background shortcut and scrolls the timeline behind e2e tests reproduce the CI failures: the geometry tests with a pointer and with touch, the stale-call test, the two-rows test, and the three revealed-call tests. With this PR, all 10 remaining tests pass in Chromium, run twice with no retries. typecheck:e2e reports the same 185 errors as the base, and none are on the changed lines.
The new background-subagent fixture uses the same shape as the existing call_backgrounded fixture. Deleting the revealed-call tests is reasonable now that their pill entry point is gone.
The public API is unchanged; this PR only edits e2e tests.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 72-hour window.
Feel free to open a new pull request that follows our guidelines.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
Hona
Awaiting requested review from Hona
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|