Skip to content

test(cross-version): read isStructuredTab from the shared module the newest release defines it in - #30000

Merged
brennanb2025 merged 1 commit into
mainfrom
brennanb2025/wire-baseline-structured-tab
Oct 17, 2026
Merged

brennanb2025 merged 1 commit into
mainfrom
brennanb2025/wire-baseline-structured-tab

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2
Prod 0 0 0 0

ELI5

A CI check that pairs this build against the newest published release started failing on every PR once v1.4.228 and v1.4.229 were tagged. The test was looking for a helper in a file the new release no longer defines it in. This points the test at the file where that helper now lives.

What Changed

  • Before: the cross version wire compatibility job fails on every PR with "the baseline release exports no isStructuredTab" in tests/e2e/cross-version-wire/cross-version-registered-agents.unit.test.ts. Unrelated PRs fail with the same error (for example run 39010373480 and run 39010113071).
  • Mechanism: fix(mobile): phone server rows follow the desktop's other-client and sleeping filters #28819 moved isStructuredTab from src/renderer/src/components/native-chat/structured-agent-session-tabs.ts into src/shared/structured-agent-session-tab.ts. The renderer module now only imports it. The test loads the helper from the newest stable release tag. That tag moved from v1.4.227 to v1.4.228 and later, which include the move, so the export lookup found nothing.
  • After: the test imports the helper from src/shared/structured-agent-session-tab.ts in the baseline checkout. Every release from v1.4.228 on defines it there.

No product code changes.

Why

The test always pairs against the newest stable release, so it only needs to read the newest location. Keeping a fallback to the old renderer path would serve only a baseline pinned by hand to v1.4.227 or older.

Linked Issue

None. This repairs main's CI.

Visual Proof

N/A: test-only change with no UI effect.

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

The fixed test is the change. CI's cross-version wire job on this PR runs it against v1.4.229. I confirmed with git show that v1.4.228 and v1.4.229 export isStructuredTab from the shared file, and that v1.4.227 does not have it.

Review

Author: @BrennanKB5

@coderabbitai

coderabbitai Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

📝 Walkthrough

The baseline test now imports isStructuredTab from src/shared/structured-agent-session-tab.ts instead of the renderer module.

Estimated code review effort

Priority: ⬇️ Low

Merge Risk: 🔵 Low · up to a8303

The cross-version test cannot complete when run against v1.4.227. This is a bounded test-workflow issue rather than a product runtime regression, so merge risk is low.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description explains the failure, the root cause, the code change, the rationale, and testing status. However, it lists no linked issue even though the template requires one, and it omits the repo… Add the required linked issue, or document the applicable maintainer exception. Complete the checklist and address the required compatibility, security, performance, and validation notes.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely identifies the main test change: reading isStructuredTab from the shared module used by the newest release.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
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: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files.

Full details: Description check

Explanation

The description explains the failure, the root cause, the code change, the rationale, and testing status. However, it lists no linked issue even though the template requires one, and it omits the repository checklist and notes sections.

Resolution

Add the required linked issue, or document the applicable maintainer exception. Complete the checklist and address the required compatibility, security, performance, and validation notes.

  • Fix all pre-merge checks with AI
✨ Finishing Touches
📝 Generate docstrings
  • 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

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1ac9bca1-a621-44bd-947b-946c10490c8d
📥 Commits

Reviewing files that changed from the base of the PR and between 77c511b and a830305.

📒 Files selected for processing: 1
  • tests/e2e/cross-version-wire/cross-version-registered-agents.unit.test.ts

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

Comment on lines +94 to +95
// Why: releases from v1.4.228 define it here; the renderer module only imports it.
importReleaseCheckoutModule(checkout, 'src/shared/structured-agent-session-tab.ts'),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win

🔎 Supported by static analysis

🌐 Web query:

site:github.com/stablyai/orca v1.4.227 "structured-agent-session-tab" "isStructuredTab"

💡 Result:

I couldn’t verify a match for **`structured-agent-session-tab`** or **`isStructuredTab`** in Orca **v1.4.227**: the exact GitHub search returned no results. The available release listing confirms v1.4.227 exists, but doesn’t establish whether either string is in its source. ([newreleases.io](https://newreleases.io/project/github/stablyai/orca/release/v1.4.227?utm_source=openai))

The closest relevant source notes that the structured agent-session compatibility tests **do not cover the session-tab sync channel**—so it doesn’t answer whether these identifiers exist in that release. ([github.com](https://github.com/stablyai/orca/blob/main/docs/reference/remote-wire-compatibility.md?utm_source=openai))

Citations:

- 1: https://newreleases.io/project/github/stablyai/orca/release/v1.4.227?utm_source=openai
- 2: https://github.com/stablyai/orca/blob/main/docs/reference/remote-wire-compatibility.md?utm_source=openai

🏁 Script executed:

rg -n 'ORCA_CROSS_VERSION_BASELINE_REF|cross-version-registered-agents.unit.test' .github tests package.json config
sed -n '45,90p' tests/e2e/cross-version-wire/release-checkout.ts

Repository: stablyai/orca

Length of output: 2072


🏁 Script executed:

set -u
printf '%s\n' '--- changed hunk ---'
git diff 77c511b316373d6aa4cf3a25066ed8e66fadf771 a830305ce2d8d80ccb9493eed7f1c84ee5d538b7 -- tests/e2e/cross-version-wire/cross-version-registered-agents.unit.test.ts
printf '%s\n' '--- test import block ---'
nl -ba tests/e2e/cross-version-wire/cross-version-registered-agents.unit.test.ts | sed -n '70,112p'
printf '%s\n' '--- baseline resolver and callers ---'
nl -ba tests/e2e/cross-version-wire/release-checkout.ts | sed -n '1,120p'
rg -n -F --glob '*.{yml,yaml,json,jsonc,ts,js,mjs,md}' -e 'ORCA_CROSS_VERSION_BASELINE_REF' -e 'cross-version-wire' -e 'resolveBaselineReleaseRef' .github tests config package.json || test "$?" -eq 1
printf '%s\n' '--- local refs ---'
git tag --list 'v1.4.22[67-9]' || true
git show-ref | grep -E 'v1\.4\.22[67-9]$' || true
printf '%s\n' '--- public tag resolution ---'
git ls-remote https://github.com/stablyai/orca.git 'refs/tags/v1.4.227' 'refs/tags/v1.4.227^{}' || true
printf '%s\n' '--- public v1.4.227 helper sources ---'
for path in src/shared/structured-agent-session-tab.ts src/renderer/structured-agent-session-tabs.ts; do
  url="https://raw.githubusercontent.com/stablyai/orca/v1.4.227/$path"
  echo "### $url"
  curl -L --fail --silent --show-error "$url" | nl -ba | sed -n '1,220p' || true
done
printf '%s\n' '--- current source declaration ---'
rg -n -F --glob '*.ts' -e 'export function isStructuredTab' -e 'isStructuredTab' src/shared src/renderer | sed -n '1,100p'

Repository: stablyai/orca

Length of output: 27887


🏁 Script executed:

set -u
printf '%s\n' '--- exact v1.4.227 old renderer module ---'
url='https://raw.githubusercontent.com/stablyai/orca/v1.4.227/src/renderer/src/components/native-chat/structured-agent-session-tabs.ts'
curl -L --fail --silent --show-error "$url" | nl -ba | sed -n '1,180p'
printf '%s\n' '--- v1.4.227 source tree paths ---'
curl -L --fail --silent --show-error 'https://api.github.com/repos/stablyai/orca/git/trees/f51e82c4c26745f6a15e215e4391f533327697e2?recursive=1' |
  python3 -c 'import json,sys; d=json.load(sys.stdin); print("\n".join(x["path"] for x in d.get("tree",[]) if "structured-agent" in x["path"] or "native-chat" in x["path"]))' | sed -n '1,120p'
printf '%s\n' '--- cross-version workflow ---'
nl -ba .github/workflows/pr.yml | sed -n '995,1060p'
printf '%s\n' '--- baseline contract text ---'
nl -ba config/reliability-gates.jsonc | sed -n '18890,18915p'
printf '%s\n' '--- stable tag selection ---'
nl -ba config/scripts/stable-release-tags.mjs | sed -n '1,180p'

Repository: stablyai/orca

Length of output: 16911


🏁 Script executed:

set -u
printf '%s\n' '--- release checkout import helper ---'
rg -n -F -- 'importReleaseCheckoutModule' tests/e2e/cross-version-wire
nl -ba tests/e2e/cross-version-wire/release-checkout.ts | sed -n '114,190p'
printf '%s\n' '--- existing module path fallback patterns ---'
rg -n -F --glob '*.ts' -e 'structured-agent-session-tabs.ts' -e 'structured-agent-session-tab.ts' -e 'access(' -e 'existsSync' tests/e2e/cross-version-wire | sed -n '1,180p'

Repository: stablyai/orca

Length of output: 29721


Support pre-move baseline refs in the helper import.

When ORCA_CROSS_VERSION_BASELINE_REF=v1.4.227, the test imports a file that does not exist. v1.4.227 exports isStructuredTab from src/renderer/src/components/native-chat/structured-agent-session-tabs.ts. The failed import occurs in beforeAll, before the wire assertions. Select the module path based on which file exists in the baseline checkout.

Suggested fix
+import { existsSync } from 'node:fs'
+import { join } from 'node:path'
@@
-    // Why: releases from v1.4.228 define it here; the renderer module only imports it.
-    importReleaseCheckoutModule(checkout, 'src/shared/structured-agent-session-tab.ts'),
+    importReleaseCheckoutModule(
+      checkout,
+      existsSync(join(checkout.root, 'src/shared/structured-agent-session-tab.ts'))
+        ? 'src/shared/structured-agent-session-tab.ts'
+        : 'src/renderer/src/components/native-chat/structured-agent-session-tabs.ts'
+    ),

@brennanb2025
brennanb2025 merged commit 035588e into main Oct 17, 2026
31 checks passed
@brennanb2025
brennanb2025 deleted the brennanb2025/wire-baseline-structured-tab branch October 17, 2026 07:52
brennanb2025 added a commit that referenced this pull request Oct 17, 2026
…ecycle-codex-held

Takes main's cross-version harness fix (#30000) in place of this branch's copy.
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