Skip to content

fix(sidebar): stop a workspace with a structured chat reading as asleep - #22098

Merged
brennanb2025 merged 4 commits into
mainfrom
brennanb2025/worktree-sleep-status-pr
Sep 22, 2026
Merged

brennanb2025 merged 4 commits into
mainfrom
brennanb2025/worktree-sleep-status-pr

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​169 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​168
Prod 11 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​169 $\color{#cf222e}{\Huge{\mathbf{−}}}$​79 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​90

ELI5

If a workspace's only open thing was a native chat, the sidebar drew a little moon on it and greyed it out — the "this workspace is asleep" look — even though the chat was right there and you could type into it. The moon also pushed the pull-request icon off the row, so you lost the PR status at a glance, and turning on "hide sleeping workspaces" made the workspace disappear from the sidebar completely.

Nothing had actually been put to sleep. The sidebar just had no idea native chats exist.

What Changed

Before: open a workspace, start one or two native chats in it, and leave. The moment the agents finished replying, the row dimmed and showed the sleeping moon. Its PR icon was replaced by that moon. With the sleeping filter on, the row vanished.

After: a workspace holding a native chat is never shown as asleep. It keeps its normal appearance, keeps its PR icon, and stays in the list.

Mechanism. The sidebar decides "asleep" by asking whether a workspace has any activity, and it had three ways to say yes: a terminal tab with a live process behind it, an open browser tab, or an agent that is currently mid-task. A native chat matches none of them:

  • Its tab is stored in a different place than terminal tabs, so the terminal check never sees it.
  • It has no terminal process to point at.
  • An idle chat reports its state as "done", and the agent check deliberately ignores "done" — that is what lets a finished terminal agent's row calm back down.

So two chats finishing their replies was all it took. This adds a fourth way to say yes: the workspace has a native chat.

Two supporting moves with no behaviour change: the new lookup sits next to the two existing ones that do the same job for terminal and browser tabs, and the function that reads app state into the filter's inputs moved into its own file. That second move keeps the filter a pure function of its inputs, and keeps both touched files under the 300-line limit without raising it.

Why

The interesting question was what "awake" should mean for a native chat, because the obvious answer is wrong.

A native chat does have a background process, and there is already a flag that reports whether it is running. Keying off that flag would compile and look principled — but that process is only kept alive while the chat is actually on screen, and it is shut down 15 seconds after you look away. So the moon would have reappeared on every workspace you switched away from, a few seconds later. It would have reported an invisible process being recycled, which is not a thing anyone can act on, and it would have reproduced the original complaint in a slower form.

What actually survives is the chat: its transcript is on disk, and it will accept your next message whenever you come back. That is the fact a "this is asleep" marker must not contradict, so presence of the chat is what the check asks about.

This also went into the one shared check rather than into the sidebar row. The moon, the hide-sleeping filter, and the Cmd+J palette all read that same check, and the code already carries a comment warning that they must not disagree about which workspaces are asleep. Fixing only the row would have left the filter still hiding the workspace.

Considered and rejected: keying on the background process (above); special-casing the sidebar row only (leaves the filter and palette wrong); and folding chats into the existing "live agent" set (that set is named for something else and is read elsewhere, so overloading it would mislead the next reader).

Linked Issue

No filed issue — this came from a report in Orca itself, of a workspace with two native chats showing the sleeping icon and hiding its PR status. Happy to open one to link if that is preferred.

Visual Proof

Not yet attached. This is a visible change (moon icon and PR icon on the sidebar row), so it warrants a before/after — I did not want to hold the PR open while capturing it. I can add a before/after pair from the Electron rig on request.

Testing

Four tests added to the sleeping-state suite, two of them negative controls:

  • a workspace whose only surface is a native chat is awake
  • the same, with the session's status explicitly "done" — the exact reported case
  • an editor tab does not count as activity (control)
  • a chat on a different workspace does not leak across (control)

Verification run:

  • pnpm tc — passes
  • pnpm run check:code-quality:changed — 0 findings across 10 files, all seven gates
  • 93 tests pass across the five suites covering this check, including the pre-existing worktree-activity-state and visible-worktrees suites
  • Ablation: with the new term removed, the two positive tests fail and the two controls still pass. Re-checked after the restructure and after rebasing onto current main, so the tests pin the fix rather than passing on their own.

Platforms: logic is platform-independent renderer code with no path, shell, or process handling. Not separately exercised on Linux/Windows. Remote/SSH: the check reads only locally-held tab state and does not consult the execution host, so a dropped connection cannot flip a workspace to "asleep" — which was a specific hazard with the rejected alternative.

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

Review

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Security: none — no new inputs, no process or filesystem access. Cross-platform: platform-independent. Remote SSH: covered above; the check requires no host contact. Mobile: untouched, this is desktop sidebar rendering. Backwards compatibility: no persisted shape or wire format changes; the new parameter defaults to empty, so any caller not yet passing it behaves exactly as before. Performance: the lookup is cached per tab-map snapshot in the same way the neighbouring live-agent lookup is, so it does not add a store-wide scan to each card's selector run.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

A workspace whose only surface is a structured native chat showed the sleeping
moon, lost its pull-request glyph to it, and would vanish entirely under the
hide-sleeping filter.

hasActiveWorkspaceActivity asked three terminal-shaped questions: a tab in
tabsByWorktree with a live PTY, a browser tab, or a fresh non-done agent-status
row. A structured chat answers none of them. Its tab lives in
unifiedTabsByWorktree, so the PTY term never sees it, and an idle session
projects state 'done', which is exactly what isFreshNonDoneAgentStatus refuses.
Both chats finishing their turn was enough to draw the moon.

Add a fourth term keyed on the chat EXISTING. Not on a live provider child: that
child is held only while the chat's pane is visible and is evicted 15s after it
is not, so keying on it would flip the glyph on every worktree switch and report
a process recycle the user never sees. The transcript, and the session's ability
to take the next send, outlive the child.

The term goes in the shared predicate, not the card, because the moon, the
hide-sleeping filter and the Cmd+J palette all read it and must not disagree
about which workspaces are asleep.

Supporting moves, no behaviour change: the projection sits beside its siblings in
visible-worktree-activity-inputs, and buildVisibleWorktreeOptionsFromState moves
to its own module, which leaves the filter a pure function of its options and
keeps both files under the 300-line cap without raising it.
@coderabbitai

coderabbitai Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

Understand this PR’s impact

Explore downstream dependencies and potential security impact with Blast Radius.

View blast radius →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 98500e99-36a8-4b06-8a0c-b5fcababd14b

📥 Commits

Reviewing files that changed from the base of the PR and between d6c908b and b33a5e4.

📒 Files selected for processing (5)
  • src/renderer/src/components/sidebar/use-visible-workspace-kanban-worktree-ids.ts
  • src/renderer/src/components/sidebar/visible-worktree-activity-inputs.ts
  • src/renderer/src/components/sidebar/worktree-list/listing/use-visible-worktrees.ts
  • src/renderer/src/components/use-worktree-jump-palette-worktrees.ts
  • src/renderer/src/components/worktree-jump-palette-worktrees-input.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 5 remain after this review.


📝 Walkthrough

Walkthrough

The change derives structured-chat worktree IDs from unified tabs. Workspace activity checks treat those worktrees as active, including after an agent turn reaches done. Sidebar visibility, sleep-state filtering, kanban worktree IDs, and the jump palette pass structured-chat activity through their existing filtering paths. Visibility option construction moved to a dedicated module. Tests cover structured chats, non-chat tabs, chats on other worktrees, and memoized visibility scans.

Priority: ➖ Normal

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is detailed and covers the user impact, mechanism, rationale, testing, compatibility, and performance. However, it does not provide the required linked issue and does not attach the re… Link the issue addressed by the PR, or create one and reference it in the Linked Issue section. Attach before-and-after screenshots or videos in the PR, then mark the visual-proof checklist item as complete.
Docstring Coverage ⚠️ Warning Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 18 functions across 14 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: preventing workspaces with structured chat from appearing asleep in the sidebar.
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: Description check

Explanation

The description is detailed and covers the user impact, mechanism, rationale, testing, compatibility, and performance. However, it does not provide the required linked issue and does not attach the required before-and-after visual proof for this UI behavior change.

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR

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.

@pullfrog pullfrog 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.

ℹ️ Minor suggestions only. The fix is correct and well-covered; the notes below are optional.

Reviewed changes

  • Structured-chat activity term. hasActiveWorkspaceActivity / isInactiveWorkspace gain an optional worktreeIdsWithStructuredChat set (defaulting to empty, so existing callers are unchanged), making a workspace with a native chat tab read as awake rather than asleep.
  • New lookup. getWorktreeIdsWithStructuredChat derives the set from unifiedTabsByWorktree via the existing getStructuredAgentSessionTabs, WeakMap-cached on the map snapshot. Presence, not the transient provider child, is the signal by design.
  • Threaded through every sleep consumer. useIsSleepingWorktree, computeVisibleWorktrees / VisibleWorktreeOptions, the hide-sleeping reveal callback, useVisibleSidebarWorktrees, and useWorktreeJumpPaletteWorktrees all pass the new set.
  • Refactor. buildVisibleWorktreeOptionsFromState moved to its own visible-worktree-options-from-state.ts; visible-worktrees.ts re-exports the lookup for the palette import site.
  • Tests. Four cases added to the sleep-state suite: chat awake, chat with done status awake, editor-tab control, cross-worktree control. I traced these against the predicate — each positive case fails without the new term, so they pin the fix.

ℹ️ Nitpicks

  • The matches isInactiveWorkspace across runtime shapes case list in use-worktree-sleep-state.test.tsx still has no structured-chat case. That test exists to keep the moon and the hide-sleeping filter from drifting, and structured chats are exactly the input that just changed, so adding a case there would close the one gap the direct assertions don't cover.
  • visible-worktree-activity-inputs.ts has no direct unit test for getWorktreeIdsWithStructuredChat alongside the sibling terminal/browser projection tests in visible-worktree-activity-inputs.test.ts; it's only exercised indirectly today. Not blocking.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Sidebar proof

Hidden Electron window on this branch (ORCA_BACKGROUND_LAUNCH=1, isolated profile, CDP only, window stayed unfocused). Workspace sidebar-chat had one structured chat tab (agent-session / Codex) and no terminal. sidebar-idle had neither.

Sleeping workspaces shown: sidebar-chat stays bright and shows the branch glyph. main and sidebar-idle are dimmed and read Sleeping.

Sleeping workspaces hidden: sidebar-idle drops out. sidebar-chat stays. main stays because the primary checkout is exempt from that filter, and it still reads Sleeping.

This repo has no linked pull request, so the awake lane shows the branch glyph rather than a review icon. The center pane did not paint a chat transcript; the tab was injected without a live session. The sidebar state is what the sleep check reads.

Sleeping workspaces shown

Sleeping workspaces hidden

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Correction to the review-status comment above: the validation results are 87 focused tests passed, pnpm tc:web passed, changed-code quality passed with 0 findings, direct lint passed, and git diff --check passed. The previous comment was mangled by shell quoting; this is the authoritative status. Fixes are pushed in commit d6c908b. Electron CDP validation was completed in an isolated background instance, and the structured-chat workspace stayed visible with sleeping workspaces shown and hidden. Screenshots are attached in the preceding sidebar-proof comment. No unexpected user behavior remains in the reviewed scope.

@pullfrog pullfrog 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.

✅ No new issues found. The follow-up commit closes the last gap and correctly addresses the prior review.

Reviewed changes

  • Kanban board covered. useVisibleWorkspaceKanbanWorktreeIds now threads getWorktreeIdsWithStructuredChat into computeVisibleWorktrees, closing the third visibility surface so a chat-only workspace no longer disappears from the board while sleeping workspaces are hidden.
  • Structured-chat selector gated. The sidebar list and Cmd+J palette selectors return the stable EMPTY_STRUCTURED_CHAT_WORKTREE_IDS sentinel while showSleepingWorkspaces is true, so the visible-list memo stops re-keying on every unifiedTabsByWorktree write — the prior review's inline thread. The core computeVisibleWorktrees only reads the set inside if (!opts.showSleepingWorkspaces), so substituting the empty set there is safe.
  • Stable sentinel exported. EMPTY_STRUCTURED_CHAT_WORKTREE_IDS is promoted to a module export on visible-worktree-activity-inputs.ts and re-exported through visible-worktrees.ts for the palette import site.
  • Tests. A kanban-board case asserts a chat-only workspace stays visible under hide-sleeping, and a sidebar-list case asserts no computeVisibleWorktrees rescan for chat-tab writes while sleeping workspaces are shown. I traced both against the code: each fails without its change.

I re-checked every isInactiveWorkspace / hasActiveWorkspaceActivity call site: the sidebar list, Cmd+J palette, kanban board, and the reveal callback all either pass the real set or are guarded by !showSleepingWorkspaces. No remaining surface.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@brennanb2025

Copy link
Copy Markdown
Contributor Author

CI follow-up: merged the latest origin/main and pushed b33a5e4. The prior static-analysis failure was the jump-palette file exceeding the 300-line limit; the structured-chat input/type logic is now split into focused modules. The new run is green for static analysis, typecheck, both packages, relay integration, all eight test shards, and the aggregate verify gate. Pullfrog remains pending.

@pullfrog pullfrog 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.

ℹ️ No critical issues — one optional cleanup inline.

Reviewed changes

Reviewed the commits since the prior pullfrog review (d6c908bfbf): a merge of origin/main, then a refactor that keeps the jump-palette hook under the max-lines limit.

  • Extracted the structured-chat gate. getStructuredChatWorktreeIds(showSleepingWorkspaces, unifiedTabsByWorktree) now wraps the showSleepingWorkspaces ? EMPTY : getWorktreeIdsWithStructuredChat(...) decision, and the three gated call sites delegate to it.
  • Extracted the palette input type. WorktreeJumpPaletteWorktreesInput moved to its own worktree-jump-palette-worktrees-input.ts, bringing use-worktree-jump-palette-worktrees.ts to 297 lines.
  • Repointed the palette import. The palette now imports the lookup from visible-worktree-activity-inputs directly instead of through the visible-worktrees.ts barrel.

The refactor is behavior-preserving — I traced the helper against the inlined expressions it replaces. The three affected suites (18 tests), pnpm run typecheck:web, and check:code-quality:changed (0 findings) all pass.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

Comment on lines +27 to +30
export {
EMPTY_STRUCTURED_CHAT_WORKTREE_IDS,
getWorktreeIdsWithStructuredChat
} from './visible-worktree-activity-inputs'

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.

This re-export is now unused: the jump palette was its only consumer, and this commit switched it to importing getStructuredChatWorktreeIds from visible-worktree-activity-inputs directly. EMPTY_STRUCTURED_CHAT_WORKTREE_IDS and getWorktreeIdsWithStructuredChat have no other referrer anywhere in the repo, so the barrel can drop these two lines. Not blocking.

Technical details
# Remove the dead structured-chat re-export

## Affected sites
- `src/renderer/src/components/sidebar/visible-worktrees.ts:27-30` — `export { EMPTY_STRUCTURED_CHAT_WORKTREE_IDS, getWorktreeIdsWithStructuredChat } from './visible-worktree-activity-inputs'` has no importer.
- `src/renderer/src/components/use-worktree-jump-palette-worktrees.ts:8` — the former consumer now imports `getStructuredChatWorktreeIds` from `visible-worktree-activity-inputs` directly.

## Required outcome
- No module remains exporting the two symbols without a consumer.

## Suggested approach (optional)
- Delete lines 27-30; every remaining importer already reaches `visible-worktree-activity-inputs` directly.

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Review complete. Latest origin/main is merged into the branch, the worktree is clean, and the feature diff remains focused.

All required GitHub checks are green, including Pullfrog, package builds, typecheck, static analysis, relay integration, all test shards, aggregate verification, and repository guards. Focused tests, web typecheck, lint/quality checks, and Electron visual proof also passed.

No remaining functional, performance, architecture, or scope issues were found in review. The PR is mergeable and ready to merge.

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Additional Electron validation completed in an isolated background instance with structured native chat enabled.

  • Created a real Codex native session through the runtime.
  • Activated the rendered Codex Chat tab.
  • Sent a prompt through the visible chat composer and observed the real response native chat smoke test passed.
  • Verified the workspace sidebar row rendered the Codex Chat indicator alongside the active workspace.

Real native chat Electron proof

The branch remained clean after validation.

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Scope note: this native-chat run validates the live provider session, rendered chat transcript, and sidebar chat indicator. It does not replace the separate sleeping-workspace show/hide scenario; that earlier filter proof used a seeded structured-chat tab rather than a live provider session.

@brennanb2025
brennanb2025 merged commit 6ce7208 into main Sep 22, 2026
30 checks passed
nplez1 added a commit to nplez1/orca that referenced this pull request Sep 22, 2026
Three files the 2026-09-22 rebase onto upstream `6ae5ef2d00` merged without a conflict
marker, whose fixtures still describe the pre-sync shape:

- `use-file-explorer-name-filter.test.ts` set `resolvedQuery` on a mocked listing.
  Upstream's stablyai#22173 (stale listings) deleted that field from `RuntimeFileListState`
  and moved the fencing into the hook, so the field no longer exists. Dropped it;
  the projection behaviour it stood for is unchanged.
- `use-visible-worktrees.test.tsx` built a `filterState` for an upstream test added
  in stablyai#22098 without `hiddenWorkspaceStatusIds`, which our #23 made required. The
  other three literals in the file already carry it.
- `AiVaultPanel.legacy-filter.test.tsx` enabled the vault search as `enabled`, the
  legacy name, in two tests upstream added. Our `3141d7578a` narrowed this mock's
  type to `contentEnabled`, which is the field the panel writes and the resolver
  reads first. Both tests still passed at runtime through the legacy fallback in
  `resolveAiVaultSearchSettings`, which is why only `pnpm tc` saw this.

No production behaviour moves. `pnpm tc` is clean.
nplez1 added a commit to nplez1/orca that referenced this pull request Sep 25, 2026
Three files the 2026-09-22 rebase onto upstream `6ae5ef2d00` merged without a conflict
marker, whose fixtures still describe the pre-sync shape:

- `use-file-explorer-name-filter.test.ts` set `resolvedQuery` on a mocked listing.
  Upstream's stablyai#22173 (stale listings) deleted that field from `RuntimeFileListState`
  and moved the fencing into the hook, so the field no longer exists. Dropped it;
  the projection behaviour it stood for is unchanged.
- `use-visible-worktrees.test.tsx` built a `filterState` for an upstream test added
  in stablyai#22098 without `hiddenWorkspaceStatusIds`, which our #23 made required. The
  other three literals in the file already carry it.
- `AiVaultPanel.legacy-filter.test.tsx` enabled the vault search as `enabled`, the
  legacy name, in two tests upstream added. Our `3141d7578a` narrowed this mock's
  type to `contentEnabled`, which is the field the panel writes and the resolver
  reads first. Both tests still passed at runtime through the legacy fallback in
  `resolveAiVaultSearchSettings`, which is why only `pnpm tc` saw this.

No production behaviour moves. `pnpm tc` is clean.
nplez1 added a commit to nplez1/orca that referenced this pull request Sep 27, 2026
Three files the 2026-09-22 rebase onto upstream `6ae5ef2d00` merged without a conflict
marker, whose fixtures still describe the pre-sync shape:

- `use-file-explorer-name-filter.test.ts` set `resolvedQuery` on a mocked listing.
  Upstream's stablyai#22173 (stale listings) deleted that field from `RuntimeFileListState`
  and moved the fencing into the hook, so the field no longer exists. Dropped it;
  the projection behaviour it stood for is unchanged.
- `use-visible-worktrees.test.tsx` built a `filterState` for an upstream test added
  in stablyai#22098 without `hiddenWorkspaceStatusIds`, which our #23 made required. The
  other three literals in the file already carry it.
- `AiVaultPanel.legacy-filter.test.tsx` enabled the vault search as `enabled`, the
  legacy name, in two tests upstream added. Our `3141d7578a` narrowed this mock's
  type to `contentEnabled`, which is the field the panel writes and the resolver
  reads first. Both tests still passed at runtime through the legacy fallback in
  `resolveAiVaultSearchSettings`, which is why only `pnpm tc` saw this.

No production behaviour moves. `pnpm tc` is clean.
nplez1 added a commit to nplez1/orca that referenced this pull request Sep 29, 2026
Three files the 2026-09-22 rebase onto upstream `6ae5ef2d00` merged without a conflict
marker, whose fixtures still describe the pre-sync shape:

- `use-file-explorer-name-filter.test.ts` set `resolvedQuery` on a mocked listing.
  Upstream's stablyai#22173 (stale listings) deleted that field from `RuntimeFileListState`
  and moved the fencing into the hook, so the field no longer exists. Dropped it;
  the projection behaviour it stood for is unchanged.
- `use-visible-worktrees.test.tsx` built a `filterState` for an upstream test added
  in stablyai#22098 without `hiddenWorkspaceStatusIds`, which our #23 made required. The
  other three literals in the file already carry it.
- `AiVaultPanel.legacy-filter.test.tsx` enabled the vault search as `enabled`, the
  legacy name, in two tests upstream added. Our `3141d7578a` narrowed this mock's
  type to `contentEnabled`, which is the field the panel writes and the resolver
  reads first. Both tests still passed at runtime through the legacy fallback in
  `resolveAiVaultSearchSettings`, which is why only `pnpm tc` saw this.

No production behaviour moves. `pnpm tc` is clean.
nplez1 added a commit to nplez1/orca that referenced this pull request Oct 1, 2026
Three files the 2026-09-22 rebase onto upstream `6ae5ef2d00` merged without a conflict
marker, whose fixtures still describe the pre-sync shape:

- `use-file-explorer-name-filter.test.ts` set `resolvedQuery` on a mocked listing.
  Upstream's stablyai#22173 (stale listings) deleted that field from `RuntimeFileListState`
  and moved the fencing into the hook, so the field no longer exists. Dropped it;
  the projection behaviour it stood for is unchanged.
- `use-visible-worktrees.test.tsx` built a `filterState` for an upstream test added
  in stablyai#22098 without `hiddenWorkspaceStatusIds`, which our #23 made required. The
  other three literals in the file already carry it.
- `AiVaultPanel.legacy-filter.test.tsx` enabled the vault search as `enabled`, the
  legacy name, in two tests upstream added. Our `3141d7578a` narrowed this mock's
  type to `contentEnabled`, which is the field the panel writes and the resolver
  reads first. Both tests still passed at runtime through the legacy fallback in
  `resolveAiVaultSearchSettings`, which is why only `pnpm tc` saw this.

No production behaviour moves. `pnpm tc` is clean.
nplez1 added a commit to nplez1/orca that referenced this pull request Oct 6, 2026
Three files the 2026-09-22 rebase onto upstream `6ae5ef2d00` merged without a conflict
marker, whose fixtures still describe the pre-sync shape:

- `use-file-explorer-name-filter.test.ts` set `resolvedQuery` on a mocked listing.
  Upstream's stablyai#22173 (stale listings) deleted that field from `RuntimeFileListState`
  and moved the fencing into the hook, so the field no longer exists. Dropped it;
  the projection behaviour it stood for is unchanged.
- `use-visible-worktrees.test.tsx` built a `filterState` for an upstream test added
  in stablyai#22098 without `hiddenWorkspaceStatusIds`, which our #23 made required. The
  other three literals in the file already carry it.
- `AiVaultPanel.legacy-filter.test.tsx` enabled the vault search as `enabled`, the
  legacy name, in two tests upstream added. Our `3141d7578a` narrowed this mock's
  type to `contentEnabled`, which is the field the panel writes and the resolver
  reads first. Both tests still passed at runtime through the legacy fallback in
  `resolveAiVaultSearchSettings`, which is why only `pnpm tc` saw this.

No production behaviour moves. `pnpm tc` is clean.
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