Skip to content

fix(opencode): a stale pid comment goes, and copilot-chat clicks New messages only - #3716

Merged
devswha merged 1 commit into
mainfrom
fix/opencode-pid-leftovers
Nov 12, 2026
Merged

devswha merged 1 commit into
mainfrom
fix/opencode-pid-leftovers

Conversation

@devswha

@devswha devswha commented Nov 12, 2026

Copy link
Copy Markdown
Owner

Change

Two of the leftover review findings on #3693 (Opus, LOW):

  • server/opencode-native.ts: the comment above the stored verification still said a read that names no process keeps the pid known; the code has cleared it since fix(post-release): the low-priority review findings left for after the 0.5.3 release #3693's last round. The comment goes (the one below it already says what the code does). Comment only.
  • scripts/copilot-chat-browser-qa.ts: the in-page click took the first .chat-new-messages, a class the icon-only "Jump to latest" button shares (src/components/ChatView.tsx). It now takes .chat-new-messages:not(.is-icon), the New messages button the step waits for.

Not here: the three OpenCode pid findings (verification order, a pid-less fallback that accepts any stopped OpenCode, a stopped job behind more than 256 shell children). They pull against each other; reported to the lead as a design question.

Validation

  • bun run typecheck: pass. bun run check fast: pass (16158 pass, 0 fail).
  • scripts/copilot-chat-browser-qa.ts: not run locally (this host's node names the fixture process MainThread, so the script stops before the changed line); CI runs it.

…essages only

Reviews of #3693 (Opus): the comment above the stored verification in
opencode-native.ts still said an empty read keeps the pid, which the code no
longer does; and copilot-chat-browser-qa.ts clicked the first
.chat-new-messages, a class the icon-only Jump to latest button shares. The
comment goes, and the click takes :not(.is-icon).
@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

  • Tests

    • Improved browser QA checks so selecting the control for jumping to a follow-up answer no longer matches the separate “Jump to latest” control.
  • Other

    • No user-facing behavior changes.

The browser QA script now selects the non-icon New messages button. A comment about process-ID handling was removed from the server code; no implementation code changed.

Changes: Browser QA selector

Layer / File(s) Summary
Target the non-icon New messages button
scripts/copilot-chat-browser-qa.ts
The jump-to-latest step now excludes the icon-only Jump to latest control. The comment distinguishes the two controls.

Process-ID comment removal

Layer / File(s) Summary
Remove the process-ID comment
server/opencode-native.ts
A comment about process-ID handling was removed. No implementation code changed.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Possibly related PRs

  • devswha/ovis#3654: Adds the New messages click that this change refines with a narrower selector.

Suggested reviewers: yuuuxie

Merge Risk: Minimal · up to cb34c

This change only adjusts a QA script selector and removes a stale comment, so there is no runtime behavior change and no merge-blocking risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names both changes in the PR: removing a stale pid comment in server/opencode-native.ts and narrowing the copilot-chat QA click to the New messages button. It is long and lists two unrelated…
Description check Passed The description follows the template. It has a Change section that describes the problem and the resulting behavior for both edits. It has a Validation section that lists the commands run (typecheck a…
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 both changes in the PR: removing a stale pid comment in server/opencode-native.ts and narrowing the copilot-chat QA click to the New messages button. It is long and lists two unrelated edits, but every part matches the changeset. The title is accurate and specific enough to scan history.

Full details: Description check

Explanation

The description follows the template. It has a Change section that describes the problem and the resulting behavior for both edits. It has a Validation section that lists the commands run (typecheck and check fast with results), and it states that the browser QA script was not run locally and why. The template asks to link an issue for features, but this is a fix, so that does not apply. HTTP/WS contract coverage does not apply either.

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 a61844c and cb34cd9.

Files selected for processing: 2

  • scripts/copilot-chat-browser-qa.ts
  • server/opencode-native.ts
Files with no reviewable changes: 1

  • server/opencode-native.ts

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

@devswha
devswha merged commit 17e923f into main Nov 12, 2026
21 checks passed
@devswha
devswha deleted the fix/opencode-pid-leftovers branch November 12, 2026 02:48
@devswha

devswha commented Nov 12, 2026

Copy link
Copy Markdown
Owner Author

Merge pass

Merged head cb34cd9a54a7 as 17e923f3eb86 on GitHub's checks, with no unresolved review threads.

Reviewer Verdict Note
codex CLEAR

One reviewer: no product code: two comment lines removed in server/opencode-native.ts and one selector in scripts/copilot-chat-browser-qa.ts.

No product code changes, so one reviewer: Codex Terra, CLEAR with no findings.

Two LOWs from #3693's review: the stale comment over the pid commit in server/opencode-native.ts goes (two comment lines, nothing else in server/), and the copilot-chat browser QA's in-page click takes .chat-new-messages:not(.is-icon), so it clicks New messages and not the icon-only Jump to latest that shares the class. CI runs that browser script on this head.

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