Skip to content

fix(app): suggest server projects on home - #43030

Closed
opencode-agent[bot] wants to merge 8 commits into
v2from
desktop-known-projects
Closed

opencode-agent[bot] wants to merge 8 commits into
v2from
desktop-known-projects

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • restore recent project suggestions when the desktop has multiple servers
  • combine recently closed and server-known projects under Recent projects, ordered with recently closed first
  • restore the hover + action and keep the recent-project picker open so several projects can be added before leaving Home
  • scope suggestions and picker state independently to each server

Checks

  • bun test --conditions=solid --preload ./happydom.ts ./src/context/project-suggestions.test.ts ./src/context/server.test.ts
  • bun typecheck
  • git diff --check
  • bun run build (blocked by host Node 18; Vite requires Node 20.19+ and fails at crypto.hash)

Requested by: kamil via Slack (U0BG0015U7K)

@usrnk1
usrnk1 marked this pull request as draft August 17, 2026 09:24
@Enough1122

Copy link
Copy Markdown

AI code review — automated review for reference; please use your judgment.

  • packages/app/src/pages/home/home-projects.tsx:12 — showRecentForServer performs a side effect (recentMode.set(key, true)) inside an accessor called during render; once latched, recent mode stays on for that server even after projects are added. If that's intentional ("shown until dismissed"), fine — otherwise derive it purely from state.
  • packages/app/src/pages/home/home-projects.tsx:8 — dismissedRecent is in-memory only, so dismissal resets on reload while the recently-closed list itself persists; consider persisting the flag alongside recents.
  • packages/app/src/app.tsx:210 — the onSelect chain swallows all failures with .catch(() => undefined); if file.list/project.current fails the user gets navigated home with no feedback. Consider surfacing an error toast.
  • Good test coverage for the new pure helper (knownProjectWorktrees) and menu placement.

No blocking issues found.

@github-actions

Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants