Merge remote-tracking branch 'origin/master' into worktree/web-session-model-selector

This commit is contained in:
Yichen Jiang
2026-07-26 13:14:59 +08:00
59 changed files with 3174 additions and 1211 deletions

View File

@@ -95,10 +95,10 @@ it('projects titles and routes the next turn through the selected model in the b
})
const tree = await screen.findByRole('tree', { name: 'Sessions' }, { timeout: 10_000 })
const projectCount = await within(tree).findByText('4 sessions')
const projectRow = projectCount.closest<HTMLElement>('[role="treeitem"]')
if (projectRow === null) throw new Error('fixture project row missing')
fireEvent.click(projectRow)
// The fixture Intent selects the workspace, so the current-group effect
// already expanded it; clicking the header would now collapse (the twist
// stays live since intent stopped forcing expansion).
await within(tree).findByText('4 sessions')
const initialLabel = 'Fixture 历史会话'
const initialRowLabel = await screen.findByText(initialLabel)