Skip to content

feat(desktop): WeChat chat-list toolbar; Org nav embeds openXYOS (delete old workbench) - #92

Merged
XYAIStudio merged 6 commits into
mainfrom
cursor/chat-org-openxyos-e453
Sep 21, 2026
Merged

XYAIStudio merged 6 commits into
mainfrom
cursor/chat-org-openxyos-e453

Conversation

@XYAIStudio

@XYAIStudio XYAIStudio commented Sep 21, 2026

Copy link
Copy Markdown
Owner

Summary

  • 「对话」会话列表标题栏增加微信式搜索与「+」新建群聊(接入已有 openGroupChat)。
  • FreeOS 桌面组织导航始终嵌入 openXYOS 模块(FREEOS_ORG_INTEGRATED=1 + FREEOS_ORG_ENABLE=1),并拉起 bundled Node 运行时(/organization-app 代理)。缺失运行时是打包/启动失败:组织页显示重启 overlay,不会把桌面用户静默 Navigate 到宿主 org-ui。
  • 非桌面、未集成的工作室仍可落到 /organization/workspace
  • 已从 Dashboard 包删除宿主旧工作台 UI(蓝条 / 功能卡片 /「打开原 App(过渡)」),不再只是取消路由:
    • dashboard/src/pages/Organization/index.tsx
    • dashboard/src/pages/Organization/index.test.tsx
    • dashboard/src/pages/Organization/pickSourceDest.ts
    • dashboard/src/pages/Organization/pickSourceDest.test.ts
  • 装配 / 打包 / 循环仍走 freeos org CLI 与 /api/org-module/*(非 UI)。
  • 未改 fix(desktop): 首启不进组织页,只走模型→对话 #90:桌面首启仍落 /chat/main,不进组织页。

Identity boundary (hard constraint)

Organization module is an independent openXYOS test environment. It is unrelated to FreeOS desktop/software accounts. Do not couple skip-login / local guest to openXYOS auth.

  • Pass. Embed still uses openXYOS login (localStorage key token → sidecar JWT via /organization-app). Test accounts demo@demo.com / user@demo.com seed on every sidecar start/restart (FREEOS_ORG_LOCAL_TEST=1).
  • Pass (fixed). FreeOS POST /api/auth/local-session never deletes openXYOS users and no longer adopts organization-mapped host rows as the desktop guest.
  • Pass (fixed). Embed proxy does not attach FreeOS identity_headers; host cookies and X-FreeOS-* from the dashboard origin are stripped. Only the iframe Bearer is forwarded.

Fix commit: 75f8d400 fix(org): keep openXYOS login independent of FreeOS guest

Test plan

  • 「对话」会话列表可搜索、可「+」建群
  • 组织导航在集成桌面打开 openXYOS 嵌入,不再出现旧工作台落地页
  • 非桌面未集成落到 /organization/workspace;桌面缺失运行时是重启 overlay,不落到 org-ui
  • 桌面始终宣称 FREEOS_ORG_INTEGRATED=1(即使 sidecar 树尚未就绪)
  • 桌面首启仍进 /chat/mainfix(desktop): 首启不进组织页,只走模型→对话 #90
  • uv run pytest tests/unit/desktop/test_nsis_uninstall.py tests/unit/test_managed_runtime_skip.py -q (22 passed)
  • dashboard vitest:OrganizationEntryorgLanding (9 passed)
  • uv run pytest tests/unit/desktop/test_nsis_uninstall.py tests/unit/desktop/test_packaged_secrets.py tests/unit/api/test_jwt_auth_middleware.py tests/unit/api/test_org_identity.py tests/unit/users/test_local_session.py tests/integration/test_local_session.py -q (61 passed locally)
  • dashboard vitest:OrganizationEntrySessionListToolbarSessionListAuthGuarddesktopOnboardingrootRedirectrequest.setupSetup (35 passed)
  • Identity boundary: uv run pytest tests/unit/users/test_local_session.py tests/unit/api/test_org_ui.py tests/unit/test_sidecar_launch.py tests/unit/api/test_org_identity.py tests/integration/test_local_session.py -q (passed); make lint + make typecheck green
  • go test under desktop/src (this VM lacks gtk4/webkitgtk; rely on CI)

Do not merge.

Open in Web Open in Cursor 

cursoragent and others added 3 commits September 21, 2026 00:38
Add search and new-group (+) to the conversation history header, wired
to the existing group-chat flow. Organization nav embeds openXYOS when
integrated and otherwise falls back to the host org-ui workspace, so the
old host workbench is no longer the default Org page. Desktop first-run
still lands on /chat/main.

Co-authored-by: XYAI Labs <haoboy8@gmail.com>
Co-authored-by: XYAI Labs <haoboy8@gmail.com>
Remove the unused Organization landing (blue banner, feature cards,
「打开原 App(过渡)」) so the bundle no longer ships that page.
Org nav still embeds openXYOS when integrated and falls back to
org-ui workspace otherwise. Assemble/pack/loop stay on CLI/API.
Desktop first-run remains /chat/main.

Co-authored-by: XYAI Labs <haoboy8@gmail.com>
@cursor cursor Bot changed the title feat: 对话列表搜索+建群;组织页回到 openXYOS feat(desktop): WeChat chat-list toolbar; Org nav embeds openXYOS (delete old workbench) Sep 21, 2026
@XYAIStudio
XYAIStudio marked this pull request as ready for review September 21, 2026 00:48
cursoragent and others added 3 commits September 21, 2026 00:55
Zero-Node desktop packs no longer force FREEOS_ORG_INTEGRATED=1.
Organization nav falls back to the host org-ui workspace unless an
openXYOS tree is present or FREEOS_ORG_SIDECAR=1. Chat toolbar stays
on the conversation list, not Experts.

Co-authored-by: XYAI Labs <haoboy8@gmail.com>
FreeOS desktop sets FREEOS_ORG_INTEGRATED=1 even when the Node tree is
not yet live. Missing runtime is a packaging/startup failure: the host
logs an error, tries sidecar recover, and the Org page shows a restart
overlay instead of navigating to host org-ui. Non-desktop studio without
integration still falls back to /organization/workspace.

Co-authored-by: XYAI Labs <haoboy8@gmail.com>
Desktop local-session must not adopt or wipe organization-mapped host rows.
Sidecar restart/recover always seeds the openXYOS test accounts, and the
embed proxy forwards only the iframe Bearer token.

Co-authored-by: XYAI Labs <haoboy8@gmail.com>
@XYAIStudio
XYAIStudio merged commit 83e660e into main Sep 21, 2026
12 checks passed
@XYAIStudio
XYAIStudio deleted the cursor/chat-org-openxyos-e453 branch September 21, 2026 01:42
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