[FEATURE]: desktop: Add Project only discoverable inside Settings in projects-first sidebar layout

未关闭
#65,297 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
52/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
frontend

调研方向

Start by reproducing the two settings toggles (Interface layout = Side tabs, Organize vertical sidebar = Projects) and noting that Home and Add Project live in a different part of the desktop UI than the projects-first sidebar. Read the sidebar component that renders the Projects section header and the New Session buttons, then find the Add Project entry point currently reachable only from Settings and the existing Home route. Done means Add Project is reachable from the projects-first layout and Home is still navigable; expect to touch more than one view and to confirm the placement with a maintainer before building.

由索引模型根据 Issue 内容生成。

描述

area/desktop platform/windows type/feature version/v2
Feature hasn't been suggested before.
  • I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
What do you want to change / add?

In OpenCode Desktop v2.3.2, when the projects-first sidebar layout is enabled (Interface layout = Side tabs, Organize vertical sidebar = Projects), the Home screen is no longer reachable, and the only discoverable Add Project entry point is buried inside Settings. The two visible "New Session" buttons (text + +) only create sessions inside the currently open project folder; neither offers a folder/project picker. Adding a second project becomes effectively undiscoverable unless you already know to look in Settings.

Please surface Add Project as a first-class, visible action in this layout — e.g. an "Add Project" item on the Projects sidebar section header, next to the two New Session buttons, or in the new-session/project picker. Also keep a route back to Home, or preserve Home's Add Project affordance somewhere in the new layout.

Benefit

Project management is a primary workflow action, not a setting. Making it visible removes the dead-end where a user in the projects-first layout cannot see how to add another folder, and reduces confusion / support requests.

Steps to reproduce
  1. Settings → General → Interface layout → Side tabs.
  2. Settings → Experimental → Organize vertical sidebar → Projects.
  3. Home screen is gone; there is no navigation back to Home from the sidebar.
  4. Only two "New Session" buttons are visible (text + +).
  5. Both only create sessions in the current project folder; no folder picker appears.
  6. The only working way to add a project is "Add Project" inside Settings.
Expected behavior

Adding a project should be a visible action in the projects-first layout (Projects section header or new-session picker), and Home should remain reachable.

Actual behavior
  • Home disappears entirely in this layout, with no way back from the sidebar.
  • Both New Session buttons stay inside the current project.
  • "Add Project" is only discoverable inside Settings.
  • Changelog entry points (#57962, #59607, #56952) were not visible or discoverable in this layout — the Settings entry was the only one found.
Environment
  • opencode version: 2.3.2 (Desktop; version from Runtime Diagnostics Snapshot and Desktop main.log; opencode CLI not in PATH in this shell)
  • OS: Windows_NT 10.0.26300.9974 (win32 x64) — via cmd /c ver
  • Terminal: Desktop app (no terminal env vars apply to the app)
  • Shell: C:\WINDOWS\system32\cmd.exe (%ComSpec%)
  • Install/channel: latest, official Desktop installer
  • Active plugins: ./plugins/hk-weather-tts, ./plugins/session-folder (from ~/.config/opencode/opencode.json)
Additional context
  • Discoverability / UX report, reproducible on every launch with this layout.
  • Current workaround: add the project from inside Settings.
  • Related issues: #48882, #55446, #60241, #58188, #56903.
  • gh CLI not installed, so drafted but not submitted automatically.
  • No secrets, tokens, or private URLs included.
主要语言
TypeScript
星标
227k
派生
30.7k
平均合并
3 小时 57 分钟
30 天内合并 PR
484

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

anomalyco/opencode 的其他 Issue

查看 anomalyco/opencode 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。