The chat sidebar's workspace picker listed rows in daemon order, which says
nothing about where the user was last. It now orders by recent use and filters
as you type.
- new `features/chat/workspace-order.ts`: recency = browser-local stamp
(`pi2-workspace-recency`, written whenever a workspace becomes active) >
daemon `lastActiveAt` > name/id, so the order is deterministic and stable;
search matches name, alias, cwd, directory name and id, whitespace-split
terms all required
- `WorkspaceSwitch` becomes a filterable listbox: fixed search field on top
(focused on open, cleared on close), scrolling row list, empty state,
arrow/Home/End focus, Enter takes the first match, Esc returns focus to the
trigger; rows are `role=option` + `aria-selected`
- pages/chat.tsx stamps whichever workspace is active (deep link, picker,
default), styles and en/zh strings for the search field
- tests for ordering, matching, persistence and the keyboard/selection paths;
the B5 UI e2e scenario follows the ARIA change and asserts the filter