Просмотр исходного кода

Merge remote-tracking branch 'origin/master' into worktree/fail-web-wildcard-host

Tianyi Cui 1 месяц назад
Родитель
Сommit
7cbb40bc8a

+ 2 - 2
apps/web/tests/snapshots/message-actions/fork.expected.md

@@ -2,6 +2,6 @@
   - treeitem "Ungrouped" [expanded]:
     - img
     - text: Ungrouped
-  - treeitem "Use the read tool twice 1min"
-  - treeitem "Use the read tool twice (1) now"
   - treeitem "Use the read tool twice (2) now" [selected]
+  - treeitem "Use the read tool twice (1) now"
+  - treeitem "Use the read tool twice 1min"

+ 1 - 1
apps/web/tests/snapshots/sidebar-subagent-activity/owner-running.expected.md

@@ -2,5 +2,5 @@
   - treeitem "workspace" [expanded]:
     - img
     - text: workspace
-  - treeitem "New Session" [selected]
   - treeitem "1 subagent running Delegate a background job. now"
+  - treeitem "New Session" [selected]

+ 1 - 1
apps/web/tests/snapshots/subagent-conversation/fork.expected.md

@@ -2,5 +2,5 @@
   - treeitem "workspace" [expanded]:
     - img
     - text: workspace
-  - treeitem "Ask a research subagent to now"
   - treeitem "Explain event sourcing in one (1) now" [selected]
+  - treeitem "Ask a research subagent to now"

+ 1 - 1
packages/client/ui-workspace/src/client/stores.ts

@@ -53,7 +53,7 @@ export function createWorkspaceViewStore(): EngineStoreHandle<WorkspaceViewState
   return defineStore({
     init: (): WorkspaceViewState => ({
       groupBy: 'workspace',
-      orderBy: 'manual',
+      orderBy: 'updated',
       groupExpansion: {},
       sessionOrderByAccount: {},
       sessionUpdatedAtByAccount: {},

+ 1 - 1
packages/client/ui-workspace/tests/tree.client.spec.ts

@@ -395,7 +395,7 @@ describe('createWorkspaceViewStore', () => {
   it('stores grouping, ordering, Workspace expansion, and recent-session view order', () => {
     const store = createWorkspaceViewStore().create()
     expect(store.getSnapshot().groupBy).toBe('workspace')
-    expect(store.getSnapshot().orderBy).toBe('manual')
+    expect(store.getSnapshot().orderBy).toBe('updated')
     store.actions.setGroupBy('flat')
     store.actions.setOrderBy('updated')
     store.actions.setGroupExpanded('alpha', true)

+ 1 - 1
packages/client/ui-workspace/tests/workspace-browser.client.spec.tsx

@@ -14,7 +14,7 @@ import { WorkspaceBrowser } from '../src/client/WorkspaceBrowser.tsx'
 import { zh } from '../src/client/locales.ts'
 
 afterEach(cleanup)
-beforeEach(() => { localStorage.clear() })
+beforeEach(() => { localStorage.clear(); createWorkspaceViewStore().create().actions.setOrderBy('manual') })
 
 // The seat's key domain is workspace ∪ common; the stub mirrors the real
 // lookup chain (namespace, then common vocabulary, then the key).