Skip to content

test(sidebar): keep the copied pane status in sidebar-filter's re-sent roster - #3759

Merged
devswha merged 1 commit into
mainfrom
test/sidebar-filter-saved-status
Nov 12, 2026
Merged

devswha merged 1 commit into
mainfrom
test/sidebar-filter-saved-status

Conversation

@devswha

@devswha devswha commented Nov 12, 2026

Copy link
Copy Markdown
Owner

Summary

Follows up #3757, from the merge pass's Codex review (LOW).

Cause

In scripts/sidebar-filter-demo-regression.ts, the EventSource wrapper copies the demo's pane-status to the Build PC's row. It does not write that status into last, the roster the fixture saved from the demo.

broadcast() rebuilds both PCs from last whenever a step edits the roster: relabelWorkspace, relabelPane, removePane or disconnect. After the demo's 4.5 s turn end, a rebuild could therefore put both api rows back to working. The Laptop's row had the same gap before #3757.

Fix (test only, no sleeps)

When the demo sends the Laptop a pane-status, the wrapper now also writes its agent_status and finish_id into the saved Laptop snapshot, on both the pane and its agent entry. A roster rebuilt after an edit then keeps the status both rows already show.

Validation

  • TMPDIR=~/.cache/ovis-tmp/ci-loop bun scripts/sidebar-filter-demo-regression.ts (en and ko, every scene): 2/2 passes (447 s at load 54, 414 s at load 75).
  • bun run check fast: pass (typecheck, build, unit tests, actionlint).

No changelog fragment: this changes a test only.

@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Bug Fixes
    • Pane status updates now appear in cached laptop snapshots and subsequent fixture rosters, including agent status and finish details when provided.

The regression script now updates matching pane and agent entries in the cached laptop snapshot when it receives a local pane-status message. It then forwards the message with machine_id set to build.

Changes: Sidebar filter pane status

Layer / File(s) Summary
Update and forward pane status
scripts/sidebar-filter-demo-regression.ts
The handler updates matching entries in the cached laptop snapshot with agent_status and, when provided, finish_id. It then forwards the status message as a build-PC message. Later fixture rosters use the updated snapshot.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Possibly related PRs

  • devswha/ovis#3753: This PR also changes the regression flow that checks pane status in the laptop and build-PC rows.
  • devswha/ovis#3757: This PR changes the same pane-status handler and the status checks for the laptop and build-PC rows.

Suggested reviewers: duytbp

Merge Risk: Minimal · up to 09801

This change only affects a regression test script, so it has no production impact. No merge-blocking risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the test-only change: the copied pane status is kept in the roster that sidebar-filter re-sends. The raw summary and objectives both describe writing agent_status and finish_id into th…
Description check Passed The description covers the cause, the fix, and validation. It explains the failing scenario (roster rebuild after relabelWorkspace, relabelPane, removePane or disconnect resets both api rows to workin…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the test-only change: the copied pane status is kept in the roster that sidebar-filter re-sends. The raw summary and objectives both describe writing agent_status and finish_id into the saved Laptop snapshot, so the title matches the main change. It is specific and within the 72-character guidance only loosely (77 characters), which is a minor concern, not a mismatch.

Full details: Description check

Explanation

The description covers the cause, the fix, and validation. It explains the failing scenario (roster rebuild after relabelWorkspace, relabelPane, removePane or disconnect resets both api rows to working) and lists the commands run with results. It does not follow the template headings exactly: '## Change' and '## Validation' are replaced by '## Cause', '## Fix', and '## Validation', and the CONTRIBUTING.md reference is absent. The Validation section also omits contract-test coverage, which the template asks for on HTTP/WS changes. The change is test-only, so that omission is non-critical. The description is mostly complete.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between a72178b and 09801b0.

Files selected for processing: 1

  • scripts/sidebar-filter-demo-regression.ts

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 4 remain after this review.

@devswha
devswha merged commit d40cecb into main Nov 12, 2026
13 checks passed
@devswha

devswha commented Nov 12, 2026

Copy link
Copy Markdown
Owner Author

Merge pass

Merged head 09801b0127b4 as d40cecb08d72 on GitHub's checks, with no unresolved review threads.

Reviewer Verdict Note
codex CLEAR

One reviewer: test-only PR (scripts/sidebar-filter-demo-regression.ts).

Test-only PR (scripts/sidebar-filter-demo-regression.ts), so one reviewer: Codex Terra, CLEAR with no findings.

Follow-up to #3757 from that PR's review: the script's wrapper now also writes the copied pane status into the fixture's saved roster, so a roster the fixture sends again after an edit keeps both rows done. The author ran it twice in full.

@devswha
devswha deleted the test/sidebar-filter-saved-status branch November 12, 2026 12:50
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