Skip to content

fix(desktop): 首启不进组织页,只走模型→对话 - #90

Merged
XYAIStudio merged 1 commit into
mainfrom
cursor/desktop-first-run-chat-6f9e
Sep 20, 2026
Merged

XYAIStudio merged 1 commit into
mainfrom
cursor/desktop-first-run-chat-6f9e

Conversation

@XYAIStudio

@XYAIStudio XYAIStudio commented Sep 20, 2026

Copy link
Copy Markdown
Owner

Summary

桌面首次打开和带着已有 ~/.freeos 再打开,都不再把 Octop /projects 工作台或组织页当成第一屏。

  • 窗口直接打开 /chat/main?desktop=1(不再是 /?desktop=1/projects)。
  • 本机会话 / 已有 JWT / has_providers=true 都离开启动 dump:可选模型(可跳过)→ 第一个智能体 /chat/main
  • /chat、SPA / 在桌面壳里进 /chat/main;网页控制台仍是 /projects
  • 组织不关、不卸FREEOS_ORG_ENABLE=1 仍会启用模块,侧栏「组织」仍是另一间房间。只是首启 / 再打开不自动走进去。

已 rebase 到 origin/main(含 #89 04d1f811 portable 刷新)。CHANGELOG 同时保留 #89 与本条。未发 GitHub Release。

Before / after

场景 之前 之后
桌面窗口 URL http://127.0.0.1:<port>/?desktop=1 http://127.0.0.1:<port>/chat/main?desktop=1
绿场 / 无提供商 local-session → /setup(可跳过)→ /chat/main 同左(启动 URL 不再途经 /projects
回访 + JWT + has_providers=true 停在 //projects /chat/main
/?desktop=1(旧壳 / 刷新) /projects /chat/main
/chat(桌面) /projects /chat/main
/organization?desktop=1 首屏 组织工作台 /chat/main
登录墙 桌面壳不渲染 不变
侧栏「组织」 可进 仍可进,只是不是第一屏
Windows 升级/重装 #89:刷新 ~/.freeos/portable 保留

How org is deferred

不关插件、不改 FREEOS_ORG_ENABLE。组织继续作为侧栏房间。启动路径、/、裸 /chat、以及带 ?desktop=1/organization* 都改去工作室对话。用户从侧栏点「组织」后刷新仍留在组织页(没有 desktop=1 查询串)。

Test plan

  • Routing unit tests (AuthGuard dump/token, ChatIndexRedirect, RootRedirect, isDesktopLaunchDumpPath, Go withDesktopQuery)
  • cd dashboard && npx vitest run on routing files — 29 passed
  • cd dashboard && npx tsc --noEmit — pass
  • cd desktop/src && go test -count=1 -timeout 180s . — local cloud image has no gtk4/webkitgtk; CI Linux job installs those
  • Re-run GitHub checks after rebase onto fix(desktop): 升级/重装刷新 ~/.freeos/portable #89

Target branch

Type of change

  • Bug fix
Open in Web Open in Cursor 

@XYAIStudio
XYAIStudio marked this pull request as ready for review September 20, 2026 18:48
Desktop launch opens /chat/main instead of / → /projects. Returning
sessions with has_providers still skip the login wall but leave the
Octop dump and organization room. Org stays a later sidebar room.

Co-authored-by: XYAI Labs <haoboy8@gmail.com>
@cursor
cursor Bot force-pushed the cursor/desktop-first-run-chat-6f9e branch from 70aa2c1 to 510bff9 Compare September 20, 2026 19:22
@XYAIStudio
XYAIStudio merged commit ae86873 into main Sep 20, 2026
12 checks passed
@XYAIStudio
XYAIStudio deleted the cursor/desktop-first-run-chat-6f9e branch September 20, 2026 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants