Repository navigation
fix(sidebar): phone feed list leftovers before the flip (dark) - #30631
Merged
Merged
Conversation
Bump the feed's semantics version for P11's desktop facts; mark switch-on phone page bundles so packaging and orcad staging refuse them; show the page's last-listed rows before the first feed read; draw the host's pending creations; pass the listed host's own label into host sections instead of the running device's platform.
A dark orcad may stage the dark page (only a marker of an off switch is refused); the bundle tree writer leaves the marker; the pre-feed list keeps the view's filters; a creation names its project only outside that project's header and survives search when its project matches; the feed view and row labels read one resolved desktop platform.
Test the off-switch marker check across switches; resolve the desktop platform once for rows and headers; a section search narrows keeps only matching rows.
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 1 minute. View limit details
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. Comment |
9 tasks done
stasmarkin
added a commit
to stasmarkin/orca
that referenced
this pull request
Oct 25, 2026
addHostSectionRows now requires localHostLabel (stablyai#30631); also cover the fallback local host so per-host counted workspace ids stay split.
stasmarkin
added a commit
to stasmarkin/orca
that referenced
this pull request
Nov 1, 2026
addHostSectionRows now requires localHostLabel (stablyai#30631); also cover the fallback local host so per-host counted workspace ids stay split.
stasmarkin
added a commit
to stasmarkin/orca
that referenced
this pull request
Nov 3, 2026
addHostSectionRows now requires localHostLabel (stablyai#30631); also cover the fallback local host so per-host counted workspace ids stay split.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
ELI5
The phone can build its workspace list from the same inputs the desktop sidebar uses, but only in test builds that turn on a build switch. Before that switch becomes the default, five gaps needed fixing: an older phone page talking to a newer host (or the reverse) could quietly build a different list; nothing stopped a test-only phone page from shipping; the list was blank until the host first answered; workspaces being created did not show; and the desktop's own host could be named after the phone's operating system. This PR fixes all five. Normal builds are unchanged.
What Changed
All of it is behind the build switch
ORCA_SIDEBAR_INPUTS=main. With the switch off, the desktop and the phone behave as before.SIDEBAR_INPUTS_SEMANTICS_VERSION) goes from 1 to 2, because feat(sidebar): the phone reads its workspace list from the sidebar inputs (dark) #30462 added the desktop's focused host, its host names and the "show pinned in groups" setting to what the feed carries. A phone page and host that disagree now show the existing "Reopen to update" screen instead of a list that only looks like the desktop's.Why
config/dark-build-switches.cjs) instead of adding a new field to the manifest. Shipped phone shells parse that manifest strictly, so a new field would have broken them.Linked Issue
N/A (maintainer, sidebar list series; leftovers from #30462)
Visual Proof
No visible change in normal builds. Switch-on screenshots of the new pending row were rendered with react-native-web (component frames, not a simulator; the workspace rows beside it are stand-ins). They are kept locally:
New phone text needing owner sign-off: "Creating workspace…".
Testing
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Unit tests:
Real builds:
ORCA_SIDEBAR_INPUTS=main pnpm build:mobile-webwrites the marker and passes its own verification. The dark-build guard then refuses thatout/mobile-web. A switch-off rebuild clears the marker.Full mobile suite passes, along with
pnpm tc, mobiletsc, the mobile test typecheck ratchet, lint, the anti-slop lint, the changed-code quality gate, the focus-read ratchet and format checks.config/scripts/build-mobile-web-app-bundle.test.mjshas 5 failures on this machine. They fail the same way on the base commit, so they come from this machine's setup, not this change.macOS only. I did not run an emulator, because every item is covered by unit tests on the shared builder and the phone's section mapping.
Review
I ran an elegance and bug review on the change and then on the fixes, and applied the findings that held up. That review led to: switch-on server builds may carry their own page; the offline list keeps the view's filters; the marker is written where the tree is written; a creation decides in the builder whether to name its project; one resolved desktop platform feeds both the row labels and the host headers.
Agent skill upstream boundary
Notes
filterWorktreesinworkspace-list-sections.ts). When the switched-off phone list code is deleted at the flip, that filter should move rather than go.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)