GeezerVison is showing github.com — refactor(app): share Home project actions and menus by joe-ieta · Pull Request #62850 · anomalyco/opencode
Conversation
joe-ieta
commented
Nov 9, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Issue for this PR
Part 2 of the split requested in #60867; design context: #60241. Independent of the session-index PR #62845.
Type of change
- Refactor / code improvement
What does this PR do?
Move Home's reusable project menu, actions, import state machine and directory helpers into shell/projects. Home, Side tabs and project settings now import the shared modules. Directory selection joins the existing actions controller with the same authentication and selection flow.
The visible menu and close behavior stay unchanged. The later Side bar change will reuse these actions.
How did you verify your code works?
Updated against official dev at a86ac3f1b9d5fb7de846c29d6e0dc2136c503f0d (2026-11-19). Adapted the new-session entry point and history-menu callback to the shared project modules; accepted removal of the obsolete organized sidebar.
bun run check: 35/35 tasks passed.
- App unit suite: 2,773 passed, 0 failed.
- Chromium production-build regressions: 7/7 passed, two workers, no retries (project menu actions, worktree selection, server re-pairing, nested settings and location cards).
Windows checks used local-only equivalents for the declaration symlink and CSS lint path normalization. Neither workaround is included in the commits. Production browser builds were completed separately before starting the test server.
Checklist
- I have tested my changes locally
- I have not included unrelated changes in this PR
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 9, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks sound to me; I found nothing that should block it. I read through the moved modules and the new choose(). Its health check reads the same global.servers.health entry that home.server.health returned before. The empty-selection early return matches what the Home selection machine already did, and Home still adds projects through home.project.add. Nothing in src, e2e or test-browser still imports the old home/projects/* paths. tsc -b in packages/app passes, and the unit tests under src/shell/projects, src/home and consumers.test.ts pass (73/73).
The fallback in choose() that adds projects through addProjects when no callback is passed isn't used by anything in this PR, so its first caller in the follow-up PR will be what tests it.
Public API: unchanged; only internal module paths in packages/app move.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new commit only adds blank lines to satisfy the lint rules, so behaviour hasn't changed. I have nothing new to raise. The public API is unchanged.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Could a maintainer please approve the pending fork CI workflows for this PR? The required checks are waiting for approval (action_required); local validation is documented in the PR body. Thanks.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Could a maintainer approve the fork CI workflows for 8c30804d36 and review the project menu and actions refactor when you have a chance? The branch is up to date with the verified dev base, and the PR description now has the local check and regression results. Thanks for taking a look.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new commit only merges upstream dev. The PR's own changes are the same as at the head I reviewed last time, and no upstream change touches the moved modules or imports their old paths. After the merge, tsc -b and the src/shell/projects and src/home unit tests still pass. I have nothing new to raise. The public API is unchanged.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Updated to 1710919b505c5daabf0c937ffc1ee3d208513df9, merging official dev at a86ac3f1b9. This adapts the new-session entry point and history-menu callback to the shared modules and accepts upstream's removal of the obsolete organized sidebar.
Validation on the updated head: full bun run check (35/35), app units (2,773/2,773), and seven Chromium production-build project/menu/location-card regressions, without retries. The PR body has the details; the temporary Windows validation workarounds are excluded from the commit.
The standards checks passed. The fork workflows, including check-test and check, require maintainer approval (action_required). Please approve those runs and complete the final review when available. No prior review threads remain unresolved.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new merge commit points the new home/projects/start.ts at the moved actions module. The shared menu now spells out the onViewHistory parameter type instead of importing ProjectBrowserTarget from home/projects/browse; the two types are identical, and this keeps the shared menu from depending on Home. tsc -b and the src/shell/projects and src/home unit tests pass. I have nothing new to raise. The public API is unchanged.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Superseded by #62845, which now includes this complete project-actions refactor alongside the bounded session-index extraction. The combined head contains this PR's latest head (1710919b505c5daabf0c937ffc1ee3d208513df9) as an ancestor. The shared-infrastructure scope remains separate from the Running component in #62851 and from the proposed Side bar interface mode.
Closing this duplicate review entry to consolidate the two small refactors and free one open-PR slot. This is not an upstream merge; the project-actions branch and this review history are retained.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
Hona
Awaiting requested review from Hona
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|