GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — refactor(app): share Home project actions and menus by joe-ieta · Pull Request #62850 · anomalyco/opencode

Conversation

@joe-ieta

@joe-ieta joe-ieta commented Nov 9, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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.

All reactions
@joe-ieta
refactor(app): share Home project actions and menus
1cf53f4
@joe-ieta
joe-ieta requested review from Brendonovich and Hona as code owners November 9, 2026 07:50
@github-actions github-actions Bot added the contributor label Nov 9, 2026
This was referenced Nov 9, 2026
feat(app): add a reusable running sessions list #62851
Open
[FEATURE]: V2 Side bar: project history and running sessions alongside existing modes #60241
Open
feat(app): add an independent Side bar mode #60867
Closed
opencodejr[bot]
opencodejr Bot reviewed Nov 9, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

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.

All reactions
@joe-ieta
chore(app): satisfy project actions lint rules
6613ed4
opencodejr[bot]
opencodejr Bot reviewed Nov 9, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

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.

All reactions
@joe-ieta

joe-ieta commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joe-ieta
chore(app): sync project actions with upstream dev
8c30804
@joe-ieta

joe-ieta commented Nov 15, 2026

Copy link
Copy Markdown
Contributor Author

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

opencodejr[bot]
opencodejr Bot reviewed Nov 15, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

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.

All reactions
@joe-ieta
chore(app): sync project actions with upstream dev
1710919
@joe-ieta

joe-ieta commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

opencodejr[bot]
opencodejr Bot reviewed Nov 19, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

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.

All reactions
@joe-ieta joe-ieta mentioned this pull request Nov 19, 2026
refactor(app): share session index and project actions #62845
Closed
3 tasks done
@joe-ieta

joe-ieta commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joe-ieta joe-ieta closed this Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@opencodejr opencodejr[bot] opencodejr[bot] left review comments
@Hona Hona Awaiting requested review from Hona
@Brendonovich Brendonovich Awaiting requested review from Brendonovich

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

contributor

Projects

None yet

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.

1 participant

@joe-ieta
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.